hi!
I'm separating header and cpp files of my program and I'm facing some problems.
first: what does defining inline classes in header files mean? does it mean that we include the definition of each function as well as its prototype in the pertinent header file?
second: I have a separate function which doesn't fit in any of the classes I have defined and 2 global vectors, with one of them of a user-defined type. where should I declare them? in what header or cpp file? (it might be useful to point that the mentioned function uses these vectors)
third: if defining inline classes in header files is what I have written in number one, I have to use the vectors I've mentioned above, in one of my classes. if I don't define the vectors mentioned in this header file, it will not know the identifiers. I'm getting somewhat confused coz it seems that I have to define these vectors repeatedly in more than one of my header files.
I'd appreciate it if you helped me out.