2008-02-05から1日間の記事一覧
文字列を格納するコンテナを一気にdoubleに変換するプログラムでちょっと嵌った #include <string> #include <vector> #include <algorithm> using namespace std; double stod(const std::string& s) { return atof(s.c_str()); } double stod(const std::wstring& s) { return _wtof(s</algorithm></vector></string>…