1234567891011121314
#include<iostream> #include<string> #include<algorithm> using namespace std; int main() { string arr[3]={"hello","cruel", "world"}; arr[0][0] = toupper(arr[0][0]); cout << arr[0][0]; return 0; }
12
for(int x = 0; x<3;x++) arr[x][0] = toupper(arr[x][0]);