
September 7th, 2004, 09:12 AM
|
|
Registered User
|
|
Join Date: Sep 2004
Posts: 4
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
Newbie help in compiling
Hello, I've just come from VB pro 6 and man that as easy compared to learning c++. Anyway
I've gotten hold of a copy of Microsoft c++ standard edition. Anyway I've looking at a few tutorials and opened up the SE C++
File > New I assume you have a new win32 exe file, and copied the code into it. Where the hell is the make .exe like in VB?
Quote:
#include <iostream.h> int main() //Most important part of the program!{ int age; //Need a variable... cout<<"Please input your age: "; //Asks for age cin>>age; //The input is put in age if(age<100) //If the age is less than 100 { cout<<"You are pretty young!"; //Just to show it works } else if(age==100) //I use else just to show an example { cout<<"You are old"; //Just to show you it works... } else { cout<<"You are really old"; //Executed if no other statement is executed
} return 0;} |
When I debugg it says 2 errors o critical! Any ideas??
thnaks
|