Код: Выделить всё
using namespace std;
string parsed,input="text to be parsed";
stringstream input_stringstream(input);
if (getline(input_stringstream,parsed,' '))
{
// do some processing.
}
Пример: я хочу разделить:
Код: Выделить всё
scott>=tiger
Подробнее здесь: https://stackoverflow.com/questions/142 ... standard-c
Мобильная версия