console application blinkt nur
-
ich versuche mich an dem hallo welt programm ^^
es funktioniert, aber das consoleApp fenster scheint nur für den bruchteil
einer sekunde auf. ich bin neu könnt ihr mir bitte helfen?mfg clee
-

-
siehe Konsolen-FAQ
http://www.c-plusplus.net/forum/viewtopic-var-t-is-111042.html
-
http://www.c-plusplus.net/forum/viewtopic-var-t-is-111042.html
edit: zu langsam

-
sothis_ schrieb:

das hab ich mir gedacht xD
trotzdem würde ich um hilfe bitten
-
new_newb schrieb:
sothis_ schrieb:

das hab ich mir gedacht xD
trotzdem würde ich um hilfe bittenokay auch zu langsam _
danke
-
#include <iostream> int main(void) { char *msg = "Hello, World\n"; for ( ; *msg; msg++ ) putchar(*msg); return 0; } void wait () { std::cin.clear(); std::cin.ignore(std::cin.rdbuf()->in_avail()); std::cin.get(); }nahc wie vor der fall

-
du musst die wait() funktion auch aufrufen. idealerweise in main() vor return 0;
-
welcher befehl ist das?

-
Nicht dein Ernst?
Probiers mal mit
wait();
-
okay läuft endlich (: danke für euer verständnis dass ich neu bin
