参考下面代码#include#include#include/*主函数*/main(){intcd;for(;;){clrscr();printf("\n\n\n\n\n\n\n\n");printf("PleaseChooseOperations\n");printf("\n1.Thecalendaroftheyear\n");printf("\n2.gonglizhuanhuannongli\n");printf("\n3.nonglizhuanhuangongli\n");printf("\n4.exit\n");scanf("%d",&cd);switch(cd){case1:rli();break;case2:gongli();break;case3:nongli();break;case4:exit(0);}}}/*打印公历年历函数*/print(intn){inti;for(i=0;i
温馨提示:答案为网友推荐,仅供参考