これを使用して入力を読み取ります。
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