- 博客(1)
- 收藏
- 关注
转载 sprintf 函数
#include int main()/*主函数“整数”类型*/ { char buffer[50];/*“字符”类型的数组,下面共有50个元素。*/ int n,a=5,b=3;/*三个变量都为“整数”类型,intn中间要有空格*/ n=sprintf(buffer,"%d plus %d is %d",a,b,a+b);/*赋予数值*/ printf("[ %s ] is a string %
2014-04-27 00:35:31
229
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人