Add a Source File to the Project

Posted by Didi Setyapramana On 10:17 AM 0 komentar

You can add a blank source code file to your project in several ways. On the Project menu select Add New Item. (See Figure 6.)
Figure 6



Figure 6 Add New File to Project

Alternatively, you can right-click on the Source Files folder in the Solution Explorer (left hand pane) and select Add, then New Item. (See Fig 7).
Both methods above bring up the Add New Item dialog shown in Figure 8. Expand the Visual C++ option (press the + if not already done.) Select Code in the Categories pane and C++ File (.cpp) in the Templates pane.
Enter a name for the file. The Location setting should be the same as your project, so no change is needed in that field. Press the Add button to create the file.
Figure 7 Add New File to Project (alternative method)

Figure 8




Figure 7 Add New File to Project (alternative method)

0 Response for the "Add a Source File to the Project"

Post a Comment