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.

Problem bei C++ mit getch() und clrscr

Empfohlene Antworten

Hallo!

Ich arbeite mit dem DEV++ Compiler und Builder. Wenn ich versuche z.B. mit getch(), gotoxy oder clrscr zu arbeiten, kommt eine Fehlermeldung "implicit declaration". In der Schule mit borland 5.5 funktioniert das aber. Kann mir vielleicht jemand weiterhelfen oder mir sagen, wo man nen kostenlosen C++Builder downloaden kann?

Gruß Silent

Ja für getch() und gotoxy brauch ich doch nur conio.h oder?

jep, getch () = conio.h:

#include <conio.h>

Die gotoxy Anweisung müßte doch auch wie clrscr zu conio.h gehören

genau. tut sie auch

Hi,

Der DEV mit seinen bugs ist so langsam mein Spezialgebiet geworden - ist halt der beste Freeware-Compiler...

getch() funzt net .. ist schon immer ein Bug. Ob der bei V5 rausgenummen wurde, kann ich nicht sagen.

Nutze stattdessen getche() das funktioniert. Hat aber den Nachteil, dass der getippte Buchstabe auf dem Bildschirm erscheint.

clrscr() kannst du durch den Aufruf system("CLS") ersetzen..

gotoxy ist nur bei DEV und Borland funktionstüchtig.. leider hat der DEV noch das Problem, dass die Farbeinstellungen für den Text nicht richtig funzen.. die conio muss halt doch nochmal überarbeitet werden....

cYa

DjR

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.