首页 > TAG信息列表 > iDay

C语言 7.0

今天来讲switch语句的应用;如有偏颇,还望海涵;int main(){ int iDay;printf("enter a day of week to get cours\n");scanf("%d",iDay); switch(iDay) { case 1: printf("have a meeting in my compa

C语言 6.0

初学C语言,还望见谅;以前写过if语句,今天写if语句的嵌套;int main(){int iDay;int Monday=1,Tuesday=2,Wednesday=3,Turesday=4,Firday=5,Saturday=6,Sunday=7;printf("Enter a day of a week to get course\n");scanf("%d",&iDay); if(iDay>Firday){if(iDay==Saturday)

js封装cookie

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Cont

一年中的第几天

根据输入的年月日,计算它是这一年的第几天 【分析】 根据输入的年(year)、月(month)、日(day),首先根据年份判断这一年是闰年还是平年,如果是闰年,则2月时29天,否则2月为28天,然后累加前month-1个月的天数,最后加上day就是这一年的第几天。 code: #include <stdio.h> #include <iostream> c