+ 1

Should we use "" while including a header file and <> while including cpp?

12th Aug 2019, 2:39 PM
ARASKES
ARASKES - avatar
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.
12th Aug 2019, 2:55 PM
Shadow
Shadow - avatar
+ 1
Got it, thanks)
12th Aug 2019, 2:57 PM
ARASKES
ARASKES - avatar