Creating a New Project

Started by sukishan, Aug 13, 2009, 12:48 PM

Previous topic - Next topic

sukishan

A project groups together all of the files associated with one of your programs and stores them in the project's directory. Especially when you start creating programs with the source code stored in more than one file it will be important to group things into projects.

However, even for a program with a single C++ source file, it helps a lot to use a project to keep your code separate from the files for other programs.
To create a new project, select File, New and click on the Projects tab. Click on Win32 Console Application. Fill in a project name, which can be the same name as the main source file (without the .cpp). For example, hw4 would be a reasonable project name.

The location shown should be correct, but check that it is set to be a subdirectory of your workspace directory. Make sure the radio buttons are set to select Add to current workspace. Do not use Create a new workspace. The "Dependency of" check box should not be checked.

Finally, click OK. At the next screen make sure that the radio button labeled An empty project is selected and click Finish. Click OK on the next screen. You now have a new, empty project.
A good beginning makes a good ending