> The word "report" is a noun
As is placeholders in
std::placeholders
; as is rel_ops (abbreviation for relational operators)
std::rel_ops. Namespace names are almost always nouns.
> Exactly what part of what that word suggests makes you think that it should not be a class?
Time in
std::time() is a noun; that does not suggest to any sane person that the intent must have been that it should be a class. Size in std::vector<>::size() is a noun; that too does not suggest that the intent must have been that it should be a class.
> Yet there is no set way for them to share data and that data is not present in Main.
You have a very long way to go, if you believe that no data at all is involved when you see:
1 2 3
|
string in = "C:/Users/IT Labs/Downloads/Payroll.txt";
string out = "C:/Users/IT Labs/Desktop/OutputData.txt";
PayrollReport(in, out);
|
Persistent data is data; data that has relevance to the program, data that is important enough to be preserved even after the program is over.
> A new user is going to delete or type just about anything that causes the compiler to stop posting errors.
It is somewhat preposterous to assume that everyone else would, or should, do exactly as you would do in a similar situation.
> NOBODY who knows what they are doing uses namespaces to group together functions.
Getting excited and shouting does not serve any purpose; inanities won't transmogrify into profundities when you use block capitals. You seem to be unaware that the namespace
std
contains many times more functions than it contains classes or objects. And that the functions that is has are not all templated. Functions from the C library like
std::strlen(), pure C++ functions like
std::quick_exit()
> For example: "std::" a namespace that groups together objects from the standard C++ library
There are very few objects in the std namespace.