+ 1

Can a functions have a string output in c++?

8th Jul 2018, 11:54 PM
ForasterXD
ForasterXD - avatar
1 Answer
+ 2
Yeah. Just make sure you specify the return type for the function as "std::string" or just "string" if you're already using the std namespace.
9th Jul 2018, 1:54 AM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar