0

why double Quotations instead of angle brackets?

I saw in examlpes, the header file of the written class was included like this: #include "MYCLASS.H", but the other statement is like this #include <iostream>, so why they didn't add it like this #include <MYCLASS.H>?

14th Dec 2016, 3:48 AM
Hesam Kashefi
Hesam Kashefi - avatar
1 Odpowiedź
+ 1
this is because MYCLASS.H is in the same folder as the program and is being included relatively however if it had been linked by the compiler it would be in <> because the compiler knows where to look for it
14th Dec 2016, 5:58 AM
Blazing Code
Blazing Code - avatar