C语言 字符串的输出

来源:互联网 发布:美的网络市场调查报告 编辑:程序博客网 时间:2024/05/16 14:28
#include <stdio.h>#include <stdlib.h>/* run this program using the console pauser or add your own getch, system("pause") or input loop */int main(int argc, char *argv[]) {printf("%3s,%7.4s,%7.2s,%5.4s","xiaopihai","xiaopihai","xiaopihai","xiaopihai"); //输出字符串,前数是字符串长度,后数是保留字符长度 return 0;}

原创粉丝点击