Search code examples
c++directory-structure

folder structure for c++ programming


I am using visual studios. Below is my current project folder structure. Folder Structure

I am actually practicing all codes in a book. So, i want to create a folder for each chapter and write each exercise in a separate .cpp file. But, i am not sure if creating folders under "source files" folder is the correct thing to do. Should i create a folder inside of Source files or outside? what's the standard way of doing it?


Solution

  • Just add them to separate projects. To do that, simply right-click the solution, select Add -> New Project... That will bring up a wizard to make a new project in your solution. Then, you can have another main inside that project.