Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

funktionen mit Unterstich, warum so?

Empfohlene Antworten

Hi, habe das hier aus diesem forum (ganz weit hinten ;-)

rausgekramt

also es gibt dafür ms spezifische funktionen. sie heißen: _kbhit(), _getch(), ... . sind in der msdn näher erklärt. _kbhit prüft, ob eine taste gedrückt würde. _getch() liefert das gedrückte zeichen. z.B. 13 für enter.

meine frage, warum steht vor kbhit() jetzt ein _

wird das im Quellcode auch so gemacht (glaub nicht oder?)

was hat es dann für eine bewandniss oder was

soll damit ausgedrückt werden?

gruß Frosch03

Bitte schlagt mich wenn ich jetzt was falsches erzähle aber soweit ich weiß bedeutet der Unterstrich, dass die dahinterstehende Funktion extern in einer Library bzw. DLL deklariert ist, was denn Linker anweisen soll, in den angegebenen Libraries danach zu suchen (oder so ähnlich).

Wie gesagt bin mir nicht ganz sicher aber das interessiert mich jetzt auch ob ich richtig liege :D

So weit ich weiß, ist das mit dem Unterstrich vor der Funktion eine VC-spezifische Sache. In der ANSI-Norm gibt es diesen Stich vor z.B. getch(...) nicht.

Auch das (veraltete) Borland C hat diesen Unterstrich nicht gehabt.

Warum MS das macht?? Keine Ahnung.

Das das als compilier-Anweisung dient, glaube ich persönlich nicht.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.