Should I put #include"" or #include<> first?

closed account (Ey80oG1T)
Is there a different to doing:

1
2
#inlcude "file.h"
#include <iostream> 


rather than:

1
2
#include <iostream>
#include "file.h" 


And "file" in this case is a user created one. Which one is better?
Depends entirely on what is inside file.h.

But generally speaking, no there isn't a difference, unless file.h is doing something that probably isn't allowed by the standard (like using a reserved macro name or the like).

Remember that #include is just a directive that copies and pastes the contents of the given file into the current file, so it would be the same as if you directly copied and pasted the contents of file.h.
Last edited on
Topic archived. No new replies allowed.