参考:http://blog.csdn.net/newnewman80/article/details/5745489
//int---> char
int num = 100;
char str[25];
sprintf(str,"%d", num);
printf("The number ’num’ is %d and the string ’str’ is %s. /n" , num, str);
///char-->int
long l;
char strSecond[]="1212121212";
l=atol(strSecond);
printf("string = %s integer = %ld/n", strSecond, l);