C++ › Preprocessor & Macros
What is the difference between #include with angle brackets and quotes?
BeginnerAnswer
#include <name> searches the system/standard include directories (used for standard and library headers). #include "name" searches the current directory first (then the system paths), used for your project's own headers. The distinction guides where the compiler looks for the file.
#include <string> // system/library header
#include "myclass.h" // project headerReal-world example Project headers use quotes so the compiler finds them relative to the source, while std headers use angle brackets.