{"width":"100%","provider_url":"https://hatena.blog","categories":["C++"],"blog_url":"https://toburau.hatenablog.jp/","title":"istringstream","blog_title":"\u30b2\u30fc\u30e0\u304c\u4f5c\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u307e\u3067\u304c\u3093\u3070\u308b\u65e5\u8a18","image_url":null,"author_name":"toburau","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftoburau.hatenablog.jp%2Fentry%2F20111104%2F1320430685\" title=\"istringstream - \u30b2\u30fc\u30e0\u304c\u4f5c\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u307e\u3067\u304c\u3093\u3070\u308b\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"C++\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u3042\u308bistringstream\u306fatoi()\u3084atof()\u306e\u4ee3\u308f\u308a\u306b\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u3002\u6587\u5b57\u5217\u3068\u3057\u3066string\u3092\u4f7f\u3063\u3066\u3044\u308b\u306a\u3089\u3053\u3061\u3089\u306e\u307b\u3046\u304c\u4fbf\u5229\u304b\u3082\u3002 \u4f7f\u3044\u65b9\u306fistringstream\u3092string\u3092\u5f15\u6570\u306b\u3057\u3066\u4f5c\u6210\u3057\u3001\u305d\u3053\u304b\u3089>>\u6f14\u7b97\u5b50\u3067\u5909\u63db\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002 #include <iostream> #include <sstream> using namespace std; int main() { string test(\"123\"); istringstream iss(test); int num = 0; iss >> num; // atoi()\u3068\u540c\u3058 c\u2026","type":"rich","url":"https://toburau.hatenablog.jp/entry/20111104/1320430685","author_url":"https://blog.hatena.ne.jp/toburau/","height":"190","version":"1.0","provider_name":"Hatena Blog","published":"2011-11-04 03:18:05"}