C++相談室 part21
■ このスレッドは過去ログ倉庫に格納されています
0190デフォルトの名無しさん
NGNGstd::stringとか使えば?
#include <iostream>
#include <fstream>
#include <string>
#include <boost/lexical_cast.hpp>
main(){
std::ifstream ifs("Hello.txt");
std::string s=boost::lexical_cast<std::string>(ifs.rdbuf());
std::cout << s;
}
■ このスレッドは過去ログ倉庫に格納されています