Ispit.cpp Guide
#include #include #include using namespace std; int main() string s; getline(cin, s); // Output first character if(s.length() > 0) cout << (char)toupper(s[0]); // Look for spaces to find the start of the next words for(int i = 0; i < s.length(); i++) s[i] == ' ') if(i + 1 < s.length()) cout << (char)toupper(s[i+1]); cout << endl; return 0; Use code with caution. Copied to clipboard
#include #include #include #include Use code with caution. Copied to clipboard ispit.cpp
Since the input contains spaces, std::getline is necessary to capture the full string. std::string input; std::getline(std::cin, input); Use code with caution. Copied to clipboard #include #include #include using namespace std; int main()















