sscanf 用法 做个笔记

老是忘记 sscanf  这个 东西 的用法;

啊啊啊啊,  脑子不好用 ,记下来把


把string  转换成 int类型

sscanf(str.c_str(),"%d",&x);


posted @ 2018-05-10 17:38  Sizaif  阅读(175)  评论(0编辑  收藏  举报