You can't use functions with a void return type with cout. You need to actually return something for it to output.
It looks like std::string would be the intended return type.
Printable View
You can't use functions with a void return type with cout. You need to actually return something for it to output.
It looks like std::string would be the intended return type.
Do I have to use typecasting to get a number displayed onto a string?
Or is there a better method?