Sorry if this is in the wrong forum.
Anyways, I have this code (very basic:)
#include <iostream>
int test = 1;
if(int == 1) {
cout << "this is a good test." << endl;
} else {
cout << "this is not a good test." << endl;
}
And I am getting these errors:
C:\Users\John\Documents\CPP\Winsock\bla.cpp|5|error: expected unqualified-id before "if"|
C:\Users\John\Documents\CPP\Winsock\bla.cpp|7|error: expected unqualified-id before "else"|
||=== Build finished: 2 errors, 0 warnings ===|
It's still there even if I add a "using namespace std;"
I'm really confused. Any help would be GREAT!