请问第二个for循环里面的index是做什么的啊
#include<iostream>
#include<string>
#include<vector>
#include<cctype>
int main()
{vector<string> svec;
string str;
while(cin>>str)
svec.push_back(str);
for(vector<string>::size_type ix=0;ix!=svec.size();++ix)
{for(string::size_type index=0;index!=svec[ix].size();++index)
if(islower(svec[ix][index])
svec[ix][index]=toupper(svec[ix][index]);
cout<<svec[ix]<<" ";
......
return 0;
}
还有为什么这里都用++ix和++index呢,我以前基本都用ix++之类的