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.

SNAKE in C++ (OO)...ich brauch das

Empfohlene Antworten

Veröffentlicht

Tach auch,

hat jemand schon mal snake (nokia-like) programmiert?

ich muß das bauen un häng ein wenig!

kann mir das jemand zuschicken?

Mit Dank,

Gleise

Wenn du ein wenig haengst, dann erzaehl oder zeig doch mal, was du schon hast :D

Das Forum hier ist ja auch zum helfen und nicht zum "mach mal und schick mal" gedacht.

Also sprich dich aus, sag wo du haengst und dir wird geholfen :)

Bye

Goos

kbhit reagiert nicht richtig. ich habe ne schleife geschrieben, in der überprüft wird, ob eine taste gedrückt wurde. Wenn eine Tastatur gedrückt wurde, soll der ASCII - Code ausgegeben werden (funzt), aber er erwartet immer wieder ne neue eingabe. solange keine taste gedrückt wurde, soll er ne ausgabe "keine taste" machen. das funzt nicht, warum?

void main()

{

int taste;

int key;

do

{

if(kbhit)

{

taste = getch();

cout << taste;

}

else

cout << "keine taste" << endl;

}

while (taste != 28);

}

...ich muß irgendwas 'übergeben'/machen, solange keine tastureingabe erfolgt...wie geht dem

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.