
编程/C++
文章平均质量分 60
pantaovay
这个作者很懒,什么都没留下…
展开
-
atoi(string到int)
atoi int atoi ( const char * str ); Convert string to integer Parses the C string str interpreting its content as an integral number, which is returned as an int value. The function first d原创 2012-06-21 11:28:02 · 619 阅读 · 0 评论 -
强大的内核格式化(incore formatting)
#include #include #include using namespace std; int main() { string lit = "378+123;"; istringstream instr(lit); int word; while(instr >> word) cout return原创 2012-06-21 11:28:46 · 475 阅读 · 0 评论