................................
................................
Last edited by King Grub; 23-01-11 at 10:03 AM.
You're missing the end quote after your newline character, which should actually be \n and not /n.
Still same error.PHP Code:#include <iostream>
using namespace std;
int main() {
int ournumber;
cout<<"Enter your number: ";
cin>> ournumber;
cin.ignore();
cout<<" You entered: "<< ournumber <<"\n;
cin.get();
}
You're still missing the quote after \n.
should beCode:cout<<" You entered: "<< ournumber <<"\n;
Code:cout<<" You entered: "<< ournumber <<"\n";