A
aaron
I have a question in my class.. hoping to get some help
I need to create a program that will print
firstName middleName lastName
then their initials
User will input:
John Smith Doe
Output:
John
Smith
Doe
JSM
I can easily create the strings and cout the names but having trouble
finding how to print the first letter of each string
(cannot use array)
am I to use ignore function somehow?
can anyone help me????
I need to create a program that will print
firstName middleName lastName
then their initials
User will input:
John Smith Doe
Output:
John
Smith
Doe
JSM
I can easily create the strings and cout the names but having trouble
finding how to print the first letter of each string
(cannot use array)
am I to use ignore function somehow?
can anyone help me????