Let's say we a string array of full names that contains {"John Doe", "Bill Gates", "Tyler Maxwell Gordon"}
What if I wanted to get the first, middle and last names of these people?
So,
first names will be John, Bill, and Tyler
middle names will be blank, blank and Maxwell
last names will be Doe, Gates, and Gordon
Is this possible? I am a python user and very new to c++11! In python, I would figure out a way to slice. But, I noticed it is not as simple to slice in c++. So, I came to the masters for help!
Any help would be appreciated!
Thank you in advance
Aucun commentaire:
Enregistrer un commentaire