用法1:
从字符串中取数字。
代码如下:
#include<bits/stdc++.h> using namespace std; int main() { char s[]={"(11,LL)"}; int v; sscanf(&s[1],"%d",&v); cout<<v<<endl; }