Console not staying open with getch() using C++ (windows 8) -
Console not staying open with getch() using C++ (windows 8) -
this question has reply here:
how stop c++ console application exiting immediately? 29 answersi'm new c++ , can't figure out why console won't remain open during execution. i'm tinkering around, sense free crucify bad habits. please help:
#include <stdio.h> #include <conio.h> int main() { printf("quantity\tcost\ttotal\n"); printf("\a\a\a\a\askip few lines, , beep "); printf("%s %c.", "you kicking butt learning", 'c'); getche(); homecoming 0; }
use system("pause");
displays message press key continue...
, waits you.
c++ console
Comments
Post a Comment