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

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -