CyberiaPC.com Main Page




Learning C++

{1} Starting Visual C++

Start Visual C++.  Then click on File, New.  Switch to the Projects tab and choose Win32 Console Application.  We choose this option since we want to create an executable.

Enter a name for the project and choose where you want it to be saved

Now click on OK.

On the next screen, choose An empty project and then click on Finish, then OK.  This option gives us a blank project.  You can try choosing the other project types if you feel like exploring.

You should now see a Workspace box on the left of your screen.  Switch to the FileView tab on the bottom of the Workspace box.  Now expand your project's name so that you see three folders: Source Files, Header Files and Resource Files.

The final step is to add a text file to the workspace where we can write our C++ code in.  The workspace is the whole project that you are working on, including all its files, dll's and libraries.

In the ToolBar click on the New Text File button.  Now enter a space in your text file (just so VC++ marks it as unsaved) and click on Save on the ToolBar.  Name the Text File Main.cpp and click on Save.  Now go to Project, Add to Project, Files.  Double click on Main.cpp and save.  You should now see Main.cpp under the folder Source Files.

At last, you are ready to start writing your code.

{Go To Step 2}