Say I have a char array: Char[3] which contains a,b,c.
What would be the easiest way to print Char as "abc" without using any of the c++ string libraries.
I am trying to overload the << operator so that i can print a class obj that contains a char array back as the original string that the obj was made with.
I am confused as to how to implement the solutions provided.
my word objs can be used like this:
Word.length() returns how long it is Word[XXX] will return whats at index XXX
std::string.