分类:
2007-10-25 11:02:50
#include#include using namespace std; int main() { string yourName; cout << "Enter your name: "; cin >> yourName; cout << "Hello " + yourName << endl; return 0; }
Save the file
save the main.cpp file by clicking FILE > SAVE, and build your project by typing CTRL+B.You can read through the build messages in the Console view. The project should build successfully, showing the following message:Build complete for project HelloWorld
OK --Bye-Bye