Originally posted by Klinerr1
how was that helpful you just reposted the code i gave you!
actually, look again. try compiling it before you post. If you looked closely you would see the difference, look:
you posted:
Code:
#include <iostream.h>
int main()
{
int thisisanumber;
cout<<"Please enter a number:";
cin>>thisisanumber;
cout<<"You entered: "<<thisisanumber;
return 0;
}
i posted:
Code:
#include <iostream.h>
int main()
{
int thisisanumber;
cout<<"Please enter a number:";
cin>>thisisanumber;
cout<<"You entered: "<<thisisanumber;
cin>>thisisanumber;
return 0;
}