Ispit.cpp Info
The program reads a line of text containing multiple words and outputs a single string where each character represents the starting letter of a word in the original input. Input: mirko soft → Output: MS
Use standard headers for input/output and string manipulation. ispit.cpp
#include #include #include #include Use code with caution. Copied to clipboard The program reads a line of text containing
for (int i = 0; i < input.length() - 1; i++) if (isspace(input[i]) && !isspace(input[i+1])) std::cout << (char)toupper(input[i+1]); Use code with caution. Copied to clipboard Full Code Example ( ispit.cpp ) ispit.cpp