{"type":"rich","author_name":"toburau","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftoburau.hatenablog.jp%2Fentry%2F20111106%2F1320592076\" title=\"istringstream\u305d\u306e2 - \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>","image_url":null,"height":"190","categories":["C++"],"provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/toburau/","title":"istringstream\u305d\u306e2","blog_title":"\u30b2\u30fc\u30e0\u304c\u4f5c\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u307e\u3067\u304c\u3093\u3070\u308b\u65e5\u8a18","published":"2011-11-06 00:07:56","description":"istringstream\u306fC\u8a00\u8a9e\u3067\u306esscanf()\u306e\u3088\u3046\u306a\u4f7f\u3044\u65b9\u3082\u3067\u304d\u308b\u3002 \u4f8b\u3048\u3070\u3001\"123,456,789\"\u3068\u3044\u3046\u6587\u5b57\u5217\u304b\u3089\u30ab\u30f3\u30de\u3067\u533a\u5207\u3089\u308c\u305f\u6570\u5b57\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u6b21\u306e\u3088\u3046\u306b\u3059\u308c\u3070\u826f\u3044\u3002 #include <iostream> #include <sstream> using namespace std; int main() { string test(\"123,456,789\"); istringstream iss(test); int num0,num1,num2; char c; iss >> num0 >> c >> num1 >> c >> num2; cout << num0\u2026","provider_name":"Hatena Blog","url":"https://toburau.hatenablog.jp/entry/20111106/1320592076","blog_url":"https://toburau.hatenablog.jp/","version":"1.0","width":"100%"}