What is a Solution vs Main.cpp?

Hello! I’m quite confused on the difference between a solution and a main.cpp. Why did we call the solution “Section_02”?

main.cpp is a source file containing code. A solution is the collection of projects/dependencies/etc. for what you’re working on.

1 Like

Yes, as mentioned in the video, think of a solution as a house, a project as a room, and (per this example) a main.cpp as a piece of furniture.

The solution holds 1 or more projects, which in turn contain 1 or more source files.

The solution was called Section_02 because it “houses” the project(s) we are working on in this section.

2 Likes

Privacy & Terms