Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

Console application automaticly quitting

$
0
0

Im trying to create a hello world! console application using C and got Visual Studio Express 2012 to be able to compile it. When I add in my code:

#include <stdio.h>

void main()
{
printf("Hello World!\n");
}

and try to compile it, the application opens up in console but shuts itself down under a second.
Im more of a java and web developer, but since Java borrowed heavily from C Im thinking I need some kind of Read line after
the printf()?


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>