#include <stdio.h> int main() { int time=0; scanf("%d",&time); int year=time/100; int month=time%100; char season[20]; switch( month) { case 1: case 2: case 12: { char season[20]="winter"; break; } case 3: case 4: case 5: { char season[20]="spring"; break; } case 6: case 7: case 8: { char season[20]="summer"; break; } case 9: case 10: case 11: { char season[20]="autumn"; break; } default: return 1; } printf("%s",char season[20]); return 0; }哪位大佬可以帮我看一下我哪里搞错了么</stdio.h>
点赞

相关推荐

牛客网
牛客网在线编程
牛客网题解
牛客企业服务