[VC++]Disable console app close wen code is done

G

Guest

Topic says it all.

after the app is done with the code it exit the console window without asking
how to disable it?


in C# its

Console.Read();

in VB.NET its

Console.Read()

Thx
 
S

SvenC

Hi,

ShadowRayz said:
Topic says it all.

after the app is done with the code it exit the console window without
asking
how to disable it?


in C# its

Console.Read();

in VB.NET its

Console.Read()

In native C++ one way is

system("pause");
 
S

SvenC

Hi,
'system' : undeclared identifier

#include <stdlib.h>

Please use the MSDN library to look up C++ documentation which states which
inludes and libs you will need.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top