sscanf()用法
http://blog.chinaunix.net/uid-26284412-id-3189214.html
1 #include<cstdio> 2 #include<cstring> 3 #include<string> 4 #include<iostream> 5 #include<algorithm> 6 using namespace std; 7 #define N 500 8 int main() 9 { 10 char s[] = "(11,LL)"; 11 char ts[10]; 12 int a,b,c; 13 int v; 14 sscanf(&s[1],"%d%s",&v,ts); 15 printf("%d %s",v,ts); 16 17 return 0; 18 }