Question: C++. The first image is my code that I'm confused about why it doesn't work. The second image is the problem we're supposed to be

 C++. The first image is my code that I'm confused aboutwhy it doesn't work. The second image is the problem we're supposedto be solving: turning the first letter of each word in a

C++. The first image is my code that I'm confused about why it doesn't work. The second image is the problem we're supposed to be solving: turning the first letter of each word in a string into an initial, and the last image is of the test file. Please let me know what I'm doing wrong.

| #include 2 3 using namespace std; + 5 l/d > string getInitials(string word) { string phrase = ""; 3 phrase = (char)toupper(phrase[o]); for(int i = 1; i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!