
Originally Posted by
Endless
It won't compile as program.c with gcc. However, using g++ does compile this, and running does output "this is a test".
That's what I meant. 
I much prefer C to C++.
I know that C compilers are very picky about comments; you have to use block comments:
rather than inline comments:
C++ supports inline comments, but the compiler could be getting fussy about it, since it technically MingW is a port of gcc. Try removing:
Code:
//introduces namespace std
and recompiling, and see if it produces output then.