经典算法问题之打印日期
摘要:
这也是一道经典的算法题。 其实也是用两个数组。还有判断是否闰年。 两个个循环,外面一个是月份循环,内部一个是每个月的天数循环,然后计数器Count++就行,直到和天数相同就跳出循环,打印就行。 #include <stdio.h> int judge ( int year ) { if (year 阅读全文
posted @ 2024-01-05 22:18 神奇的萝卜丝 阅读(22) 评论(0) 推荐(0)
posted @ 2024-01-05 22:18 神奇的萝卜丝 阅读(22) 评论(0) 推荐(0)