I learned C when it was K&R C and I ordered by headers from specific to the general.
I am still working on learning C++ in my free time.
Example in mymodule.c
But, an C++ project I use/submit patches normally use general to the specific.Code:#include "mymodule.h" #include "mylibrary.h" #include <3rdpartylibrary.h> #include <stdio.h>
Example in thisclassmodule.cpp
Is this just an C++ thing?Code:#include <iostream> #include <3rdpartyclass.h> #include "myclass.h" #include "thisclassmodule.h"
Is it recommend to use either order in C?