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 answers

i'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

Popular posts from this blog

php - How to pass multiple values from url -

database - php search bar when I press submit with nothing in the search bar it shows all the data -

ios - How to load .png images from Documents folder of an app -