What is the proper syntax and structure for me returning a value from a variable in one function and modifying it in the second function. fstream? funcName? cin.get(funcName.data)??? grrrrrrrrrr.
Help please
Printable View
What is the proper syntax and structure for me returning a value from a variable in one function and modifying it in the second function. fstream? funcName? cin.get(funcName.data)??? grrrrrrrrrr.
Help please
Your question sounds like you have a large misunderstanding of how functions work. Can you provide more information. A simple example perhaps?
In general, if you are only returning one value, you make the function return type the same type as that value. If you are returning multiple values there are other options.
Does anyone read books anymore? Seems people stumble upon C++ compilers, kick them a couple times, and then come here to ask what the hell is going on.