Is there a recommended practice that for example global includes shall go befor local includes. By global I mean #include <iostream> and local #include "myhdr.h". Is it some prefered order and why?
Is there a recommended practice that for example global includes shall go befor local
Share
Yes, there are recommendations. Some of them are:
#inlcude <>for C and STL and#include ""for your own headers.They should look something like this:
For more recommendations on good coding style you can take a look at Google’s C++ Style Guide. They give a good explanation on why you should do this in this section.