Jeffrey&Lynny

一个温馨小家庭的.Net生活

导航

2008年6月14日 #

Programming Pearls: Chatper3 Problem6 [Form letter generator]

摘要: Program source code Lesson Learned: please verify your thought carefully and slowly during pseudocode design, check its correctness is really important... 阅读全文

posted @ 2008-06-14 16:39 比尔盖房 阅读(344) 评论(0) 推荐(0) 编辑

Programming Pearls: Chatper3 Problem5 [Hyphenation Words]

摘要: Program Source Code Lesson Learned: selecting the correct data structure makes coding/algorithm pretty easy. 阅读全文

posted @ 2008-06-14 16:36 比尔盖房 阅读(223) 评论(0) 推荐(0) 编辑

Programming Pearls: Chatper3 Problem4 [Dates Caculation]

摘要: The first program The second program Lesson Learned: 将daysInMonth[]的内容拷贝到leapYearDaysInMonth[]的时候忘记将闰二月改为29天... 看来每次写完一条语句都应该verify一下。这个看似浪费时间,却真正能够减少debugging的大量时间呀 The third program Input: 1981 8 ... 阅读全文

posted @ 2008-06-14 13:22 比尔盖房 阅读(249) 评论(0) 推荐(0) 编辑