Hi there
I think you have to create a project and then go from there
try some of these tutorials first
Getting Started Tutorials
try something like this
1. Go to File ->New Project ->
2 In project types, set it to win32, set win32 console application in "visual studio installed templates".
3 Enter the folder name and press enter.
4 Click Next , check in console application, tick empty project, don't touch the others, click finish.
5 Right click in source file folder Add -> new item
6 Go select c++ file and enter "main" as the c++ file
7. Your c++ first program is ready to go.
8. Code this
#include <iostream>
using namespace std;
int main()
{
cout << "I am a c++ beginner." << endl;
system ("pause");
return 0;
}
|
9. Press Ctrl + F5 in your keyboard
10. Output should show this.
I am c++ beginner.
Press any key to continue . . ._
11. The end
should work.
BTW don't code like this when doing stuff for real as some will be "non portable" such as system("pause") and ideally using C++ code should be easily portable.
Cheers
jimbo