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.

Schließen des Konsolenfensters verhindern

Empfohlene Antworten

Veröffentlicht

Gude Loids,

sagt mal, weiß einer von euch wie man beim C++ Builder, wenn ma mit dem Quelltext fertig ist und dann debuggen tut, was man für einen befehl im Quelltext noch mit einbinden muss das des Windows Eingabeaufforderungsfenster net nach 2 sek. immer schließt?

mfg

Benny:)

ich denke mal, dass du ein Programm hast, bei dem du keine Eingabe machst, oder? Wenn du vor den return 0 - Befehl in deiner Main-Funktion ein Getch() (benötigt conio.h, mein ich) anhängst, bleibt das Fenster so lange offen, bis du eine Taste drückst.

Ich hoffe, ich hab dein Problem richtig eingeschätzt und das mit der Bibliothek noch richtig im Kopf.

Mögliche Varianten wären z.B.:

  • Das Programm aus einer Shell/Command Prompt heraus starten.
  • Am Programmende eine Funktion hinzufügen, die für die Testzwecke auf einen Tastendruck wartet und erst dann das Programm beendet.
  • Die IDE so einstellen, dass sie das Fenster automatisch offen hält, bis z.B. eine Taste gedrückt wurde, oder eine IDE benutzen, die das kann. ;)

Also ich benutze immer

System("PAUSE");

Kann aber sein das es kein Standard ist^^

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.