#include <stdio.h> int main(void) { int y, m, d, days; printf("输入你的日期"); while (scanf("%d %d %d", &y, &m, &d) != EOF) { days = d; switch (m) { //... } printf("输入的日期是..."); } return 0; }