Answered step by step
Verified Expert Solution
Question
1 Approved Answer
So Im here and im stuck. I need to figure out how to get the character of the first name to be printed on a
So Im here and im stuck. I need to figure out how to get the character of the first name to be printed on a separate line and the middle and last. is there a way where i can tell a my function to stop once it hit " "? Please help.
I #include iostream 2 #include string using namespace i; string name 7 getline cin, name 4 int main ) cout 10| #includeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started