我正在使用它来读取输入:
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 "
但是Markup
即使在我指定我不希望它跳过空格之后,这段代码也会忽略单词之后的所有内容noskipws