diff --git a/src/gui/official/test.cpp b/src/gui/official/test.cpp index 7d705256d269ebb88830f6d3e301708f0a3881aa..aa2ddf5e8b6aed9a11d456e42765d1d50de429a7 100644 --- a/src/gui/official/test.cpp +++ b/src/gui/official/test.cpp @@ -6,16 +6,19 @@ int main(int, char**) { - int code; - std::string seq; - std::string message; - std::istringstream s(std::string("100 seq12 Ma r�ponse")); + std::istringstream s(std::string("100 seq12 Mar�ponse \"sldkfjdfj s;dlfk\"")); + + std::string output; + std::list< std::string > args; + while(s.good()) { + s >> output; + args.push_back(output); + } - s >> code >> seq; - getline(s, message); - std::cout << "Code: " << code << std::endl; - std::cout << "Seq: " << seq << std::endl; - std::cout << "Message: " << message << std::endl; - return 0; + for(std::list< std::string >::iterator pos = args.begin(); + pos != args.end(); + pos++) { + std::cout << *pos << std::endl; + } }