char b[N]; int a; sprintf(b,"%d",a);把整形a写进数组b;
char c[N]="s12t"; int a; sscanf(&c[1],"%d",&a); 从数组中把从相应位置整形数写进a; a=12;