+ 2

Wha Is there any difference between?!

#include <iostream> and #include "iostream"

28th Sep 2017, 9:36 AM
Ajay Kumar Singh
Ajay Kumar Singh - avatar
2 Answers
+ 11
When you use < >, the compiler only looks in the system-designated directory/directories (e.g., whatever you've set in the include environment variable) for the header. When you use " ", the compiler looks in the local directory first, and if that fails, re-searches just like you'd used < >. Technically, (i.e., according to the standard) that doesn't have to be the "local" directory, but that's how it works in essentially every compiler of which I'm aware). [https://stackoverflow.com/questions/10304751/difference-between-iostream-and-iostream-quotes-in-include] and [https://stackoverflow.com/questions/21593/what-is-the-difference-between-include-filename-and-include-filename]
28th Sep 2017, 9:52 AM
Babak
Babak - avatar