【发布时间】:2015-05-15 14:54:49
【问题描述】:
我正在使用它来读取输入:
istringstream iss;
string typ, data;
char c1, c2;
iss >> skipws >> c1 >> typ >> noskipws >> c2 >> data;
输入行可以看起来像这样" #text Markup used in this document is compatible with " 不带引号
我想要实现的是在我的代码变量数据之后将包含"Markup used in this document is compatible with "
但是,即使在我指定我不希望它使用 noskipws 跳过空格之后,此代码也会忽略单词 Markup 之后的所有内容
【问题讨论】:
标签: c++ istringstream