0
的>>誰能請解釋我下面一行的含義在代碼使用運營商
while (ss >> temp)
std::string str = "123:234:56:91";
for (int i=0; i<str.length(); i++)
{
if (str[i] == ':')
str[i] = ' ';
}
vector<int> array;
stringstream ss(str);
int temp;
while (ss >> temp)
array.push_back(temp);