+ 1
Should we use "" while including a header file and <> while including cpp?
2 Respostas
+ 2
You usually only include headers, not the .cpp files. When doing so, using <> tells the compiler to look for the header file in the system directory, while "" tells it to search in the project directory. So you should use "" for header files that you created by yourself, that are part of the program, while <> is for external header files, e.g. header files from the standard library.
+ 1
Got it, thanks)