Because %s indicates a char* , not a std::string . Use s.c_str() or better still use, iostreams: #include <iostream> #include <string> using namespace std; ...
確定! 回上一頁