COSC 112: Computer Science I
How to create a project and add a source file in Visual C++
To create a project and add a source file
By default, the solution that contains the project has the same name as the project, but you can type a different name. You can also type a different location for the project.
Click OK to create the project.
The .cpp file appears in the Source Files folder in Solution Explorer, and the file is opened in the Visual Studio editor.
For example, you can use the set::find sample program, which is one of the the Standard Template Library samples that are included in Help.
If you use the sample program, notice the using namespace std; directive. This directive enables the program to use cout and endl without requiring fully qualified names (std::cout and std::endl).
The Output window displays information about the compilation progress, for example, the location of the build log and a message that indicates the build status.
If you used the sample program, a command window is displayed and shows whether certain integers are found in the set.