|
|
|
|
PLEASE ALWAYS USE CODE TAGS (the <> formatting button), to the right of this box, when posting code. Along with the proper indenting it makes it easier to read your code and also easier to respond to your post. http://www.cplusplus.com/articles/jEywvCM9/ http://www.cplusplus.com/articles/z13hAqkS/ Hint: You can edit your post, highlight your code and press the <> formatting button. This will not automatically indent your code. That part is up to you. You can use the preview button at the bottom to see how it looks. I found the second link to be the most help. |
|
|
|
|
spaceIndex2 != std::string::npos)
" is simiiar to saying if (spaceIndex2 != -1)
.
|
|
Please enter a name, given name(s) first, surname last: Dave Hayden Hayden, D. Please enter a name, given name(s) first, surname last: Elmer E. Fudd Fudd, E.E. Please enter a name, given name(s) first, surname last: Pat Silly Doe Doe, P.S. Please enter a name, given name(s) first, surname last: Julia Clark Clark, J. Please enter a name, given name(s) first, surname last: Rhianna Rhianna Please enter a name, given name(s) first, surname last: Paula Patch Newell Doty Attridge Attridge, P.P.N.D. Please enter a name, given name(s) first, surname last: |