Hi, I have 2 examples here that demonstrate numbering in header files, Ex1 and Ex2. My question, which is the correct way to save the code for a header file, depending on if your using a GCC compiler, versus another compiler? Either compiler or any compiler?
Ex1
1 2 3 4 5
61. extern istream cin; /// Linked to standard input
62. extern ostream cout; /// Linked to standard output
63. extern ostream cerr; /// Linked to standard error (unbuffered)
64. extern ostream clog; /// Linked to standard error (buffered)
65.
Ex2
1 2 3 4
extern istream cin; /// Linked to standard input
extern ostream cout; /// Linked to standard output
extern ostream cerr; /// Linked to standard error (unbuffered)
extern ostream clog; /// Linked to standard error (buffered)
I'm sure it's a dumb question, I'm a NOOB afterall. I just want to be sure that I'm not including numbering in my headers that will mess up the compiler when it reads the files. THANKS!