sprintf();

#include <stdio.h>

void put_int_with_space(int v)
{
    char str[50];          //定义一个足够大的数组。
    int i;
    sprintf(str, "%d", v);    //将v转为字符串。
}

相关文章:

  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-27
  • 2021-07-10
  • 2022-12-23
  • 2022-12-23
  • 2021-12-27
  • 2022-12-23
相关资源
相似解决方案