wierd Problem on Small If Prog
This is the code
Code:
#include <iostream>
#include <stdlib.h>
using namespace std;
int main()
{
int a;
char C;
cout<<"Why Hello ";
cout<<"What lang you think this is in? ";
cin>>a;
if(a==C++)
(
cout<<"You got it";
)
else
(
cout<<"Nope Its C++ ";
)
system("PAUSE");
return 0;
}
yes its cheezy but its to someone who only does qbasic
the error i get is on the line cout<<"You got it"; the error is parse error before";" i have no clue what it is im am working in devc++ any help would be appreciated. o in case its no obvious i am new and learning