Currently learning c++ and thought I could post here any noob-style questions I had regarding c++ programming.
First one is about header files:
When using a header guard like so:
#ifndef INSERT_HEADER_NAME_HERE
#define INSERT_HEADER_NAME_HERE
// content.......
#endif
how come the 'INSERT_NAME_HERE' can be all upper case letters and replace spaces with '_'?
Considering c++ syntax likes coders to be so precise and accurate with everything they do, it leaves me wondering why it can be your own preference when naming your header guards?
First one is about header files:
When using a header guard like so:
#ifndef INSERT_HEADER_NAME_HERE
#define INSERT_HEADER_NAME_HERE
// content.......
#endif
how come the 'INSERT_NAME_HERE' can be all upper case letters and replace spaces with '_'?
Considering c++ syntax likes coders to be so precise and accurate with everything they do, it leaves me wondering why it can be your own preference when naming your header guards?
Comment