四川建筑施工企业名录:求输入年月、份,打印当前月份的月日历、要求周末用红色字体(C语言) 的思路和文本

来源:百度文库 编辑:高考问答 时间:2024/04/28 01:47:53
输入年月、份,打印当前月份的月日历、要求周末用红色字体(C语言) 的思路。可以的话编出来让我看下 最住要是思路。
谢谢!~~
我有个是只有输入年份而月份按顺序输入出来
怎么把月份按顺序输入改成随即输入
怎样定义month 多谢了~~~~
for(month=1;month<=12;month++)
{
switch
{{
case 1:printf(" January(%d)\n",year);break;
case 2:printf(" February(%d)\n",year);break;
case 3:printf(" March(%d)\n",year);break;
case 4:printf(" April(%d)\n",year);break;
case 5:printf(" May(%d)\n",year);break;
case 6:printf(" June(%d)\n",year);break;
case 7:printf(" July(%d)\n",year);break;
case 8:printf(" August(%d)\n",year);break;
case 9:printf(" September(%d)\n",year);break;
case 10: printf(" October(%d)\n",year);break;
case 11:printf(" November(%d)\n",year);break;
case 12:printf(" December(%d)\n",year);break;
}
}
}

是不是航校的?