1、字符串转数值
#include <stdlib.h> #include <stdio.h> void main( void ) { char a[100]="0023200"; long b=strtol(a,NULL,10); printf("%ld",b); }
1、字符串转数值
#include <stdlib.h> #include <stdio.h> void main( void ) { char a[100]="0023200"; long b=strtol(a,NULL,10); printf("%ld",b); }
转载于:https://www.cnblogs.com/huashiyiqike/archive/2013/01/23/2872973.html

被折叠的 条评论
为什么被折叠?