iD8DBQFAKT0Loo / Prlj9GScRAhcrAJ0XiCItK6qtd9DXUFsepB9uTMfSQgCcCRR5 2oJOcbGK3Pbi5Org0wPe / qw = = kqVv ----- END PGP SIGNATURE ---- ------BEGIN PGP SIGNED MESSAGE-----Hash: SHA1Keith,Right, that''s because the input streams use white space as the defaultdelimiter on input. There are a number of solutions to this, you couldchange the default delimiter, you could change the white space on theway out, or, if your strings don''t have "/n"''s at the end, you could addone and then use getline on the way in.Evan-----BEGIN PGP SIGNATURE-----Version: GnuPG v1.0.6 (GNU/Linux)Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.orgiD8DBQFAKT0Loo/Prlj9GScRAhcrAJ0XiCItK6qtd9DXUFsepB9uTMfSQgCcCRR52oJOcbGK3Pbi5Org0wPe/qw==kqVv-----END PGP SIGNATURE-----> while(MoreData()){ std :: basic_istringstream< char>(GetData())buffer ; while (MoreData()) { std::basic_istringstream<char>(GetData()) buffer; 对不起应该是 std :: basic_istringstream< char>缓冲区(GetData()); 当然。 johnSorry should bestd::basic_istringstream<char> buffer(GetData());of course.john 这篇关于被basic_istringstream击败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-19 15:34
查看更多