哪位给个提示? 给个答案?
代码: 全选
Exercise 7-2: Write a program to perform date arithmetic such as how many days
there are between 6/6/90 and 4/3/92. Include a specification and a code design.
要不自己全重编,要考虑的就很多,比如闰年、两个日期是否是在闰年,在3月前还是3月后。。总之感觉要很多判断语句,也不好写。。 但这题现在倒不急,慢慢会学到那2个方法吧。
代码: 全选
Exercise 8-1: Print a checker board (8-by-8 grid). Each square should be 5 -by-3
characters wide. A 2-b y-2 example follows:
+-----+-----+
| | |
| | |
| | |
+-----+-----+
| | |
| | |
| | |
+-----+-----+
printf能重复在一个地方打印吗。。。
这些问题很2,没法,自学C,没正规老师教。。 习题没答案,做出来了,可以运行,看结果,做不出来,就只好到这里了求助了。。
望各位帮个忙啊。谢谢 。