printf();

使用方式:

uint8_t *rmt_str=0;

rmt_str="ERROR";

printf("%s\r\n",rmt_str);

 ②

int a=1;
float b=1.0;
char str[12]="Hello World";
printf("This is an example of printf:\n");
printf("a is %d,b is %f,and a+b=%f",a,b,a+b);
printf("I want to say,%s",str);

posted @ 2015-07-27 20:41  小鱼儿2015  阅读(201)  评论(0编辑  收藏  举报