Would someone be kind enough to write me an example of code that would take a user input and separate it into two lines please? I understand better when I see the exact code. Such as the user enters last/first and the program would separate it at the / and print it as reverse like so:
I have spent three hours reading and researching and I still cannot figure out how to do this. I can separate the input but can only print out the first part. Thanks.
Also, please use something simple like pointers or references, not Boost or any of that type of stuff. Thanks.