Is main.cpp required?
问题 I was trying to compile a program with cmake , and I ended up deleting my main.cpp file, which I had just compounded into another file which held the name of my project (i.e., I just cut and pasted the main function into that one). The problem is that I got a main.cpp not found error, and wasn't sure whether or not in C++ a file known as main.cpp is required, or can I have a file with a different title which contains the function main instead? Edit I should note that I have removed any