Can you provide more code? What you posted works when put into a simple (and complete) program:Code:#include <iostream> #include <string> #include <sstream> int main() { std::istringstream iss("show 0"); std::string show; int poly; if (iss >> show >> poly) { std::cout << "Success!\n"; } else { std::cout << "Failure!\n"; } }



LinkBack URL
About LinkBacks



