C语言输入输出%10s%10s%6s%6s%10s%10s什么意思

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/08 23:30:38
C语言输入输出%10s%10s%6s%6s%10s%10s什么意思C语言输入输出%10s%10s%6s%6s%10s%10s什么意思C语言输入输出%10s%10s%6s%6s%10s%10s什么意思输

C语言输入输出%10s%10s%6s%6s%10s%10s什么意思
C语言输入输出%10s%10s%6s%6s%10s%10s什么意思

C语言输入输出%10s%10s%6s%6s%10s%10s什么意思
输入时,%10s表示最多接受10个字符,多余的忽略;
输出时,%10s表示字符串长度不足10个时,左边补空格,保证占10个字节位置,10个及以上原样输出.