scanf()格式說明符什么時候可以連寫?
比如
#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void main()
{
char c;
int age, hi;
float s;
printf("Input Type,Age,Height,Point:\n");
scanf("%c%d%d%f", &c, &age, &hi, &s);
printf("Type:%c\tAge=%d,Height=%dcm,Point=%.2f\n", c, age, hi, s);
}
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/203007.html
標籤:C語言
上一篇:8.52的二進制
下一篇:判斷輸入括號是否成對
