i get this error: error C2143: syntax error : missing ';' before '}'Code:#include <iostream> using namespace std; int main() { int val; cout<<"enter a number 1-10"; cin>> val; cin.ignore(); if ( val != 5 ) { cout<<"wrong/n"; } else { cout<<"correct/n"; } cin.get() }
im using visual studio 2008 express.
thanks guys.
by the way, im coming from a visual basics background so bear with me! haha