Is there anything wrong with this code, I keep getting error messages when I try to compile it:
Update: i get an error on line 7, It saysCode:
#include <iostream>
using namespace std;
int main;
{
int n
cout<<"5+1= ";
cin>> n;
cin.ignore();
if ( n = 6 ) {
cout<<"Good Job! That was fun right?"
}
cin.get();
}
invalad function direction
Hmmmmmm