Hello. I'm learning C for a class I'm taking, and I was recommended Code::Blocks for my compiler/development environment. I was following a long with a simple online tutorial to familiarize myself with the syntax, and it told me to run a very simple program:
#include <stdio.h>
int main()
{
printf( "I am alive! Beware.\n" );
getchar();
return 0;
}
I created a new Console Application project for C, type in this code, hit Compile (which ran fine according to the log), then hit Run, and nothing happened. As far as I can tell, I was supposed to get a console window that would open and wait for me to hit Enter before closing again. However, I get nothing.
Any help would be appreciated, thanks!