for loop for iteration in a string : #include <iostream>
    

#include<string>
   

using std::string;
    
int main()
    

{
    

string s("some string");
    
    

for (decltype(s.size()) index = 0;	index != s.size() && !isspace(s[index]);	++index)
    

s[index] = toupper(s[index]);
    		
    

std::cout << s << std::endl;
    
    

return 0;
    

}


\\can someone tell me how the "for" loop in the program helps in uppercasing the strings first word? please I'm stuck. thank you
