It won't compile as program.c with gcc. However, using g++ does compile this, and running does output "this is a test".
Code:
#include <iostream>
using namespace std; //introduces namespace std
int main( )
{
cout << "this is a test" ;
return 0;
}
Sorry, but what does that mean? I'm just starting out, and the book I'm using told me to enter that in and compile it. The book said I'm not supposed to have any programming experience (which I don't, besides HTML). But anyway, I'm still confused.