#include <stdio.h>
int printf(const char *format, ...);
int sprintf(char *s, const char *format, ...);
int fprintf(FILE *stream, const char *format, ...);
#include <stdio.h>
int main()
{
char *s = "hello world!";
printf("%*s\n",30,s);
return 0;
}
[root@localhost C]# ./printf_test.exe
hello world!
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |