I'm trying to do the tutorials, but I can't get past the first part because my input variables aren't working. Here's my code:
I've looked at it a thousand times... it's character for character with what's on the website. But when I run the program, it prompts for a number, I input one, press enter, and it closes. What am I doing wrong?Code:#include <iostream.h> int main() { int thisisanumber; cout<<"Please enter a number:"; cin>>thisisanumber; cout<<"You entered: "<<thisisanumber; return 0; }



LinkBack URL
About LinkBacks


