【sprintf】字符串转数值、数值转字符,拼接字符,函数详细解释

1、数值转成字符: sprintf个函数,如: sprintf(s, "%d", 123); //产生"123" 2、字符串转成数值:  while(*BandRate='\0')   {num=num*10+(*BandRate-'0');   BandRate++;   }  char test_char[7]={0};   unsigned int cc=60000;         //虽
相关文章
相关标签/搜索