[學業] [計程] 作業二 程式逼 課本習題3.15的題目

看板NTUBIME-99作者 ( )時間19年前 (2006/10/12 23:29), 編輯推噓5(500)
留言5則, 5人參與, 最新討論串1/1
沒有買課本的同學們有福了 這裡有助教親手排版的題目原文 當然,如果跟課本有什麼不同,一切以課本為主 大家要準時交作業喔 3.15 (Date Class)Create a class called Date that includes three pieces of information as data members - a month (type int), a day (type int) and a year (type int). Your class should have a constructor with three parameters that uses the parameters to initialize the three data members. For the purpose of this exercise, assume that the values provided for the year and day are correct, but ensure that the month value is in the range 1-12; if it is not, set the month to 1. Provide a set and a get function for each data member. Provide a member function displayDate that displays the month, day and year separated by forward slashes(/). Write a test program that demonstrates class Date's capabilities. 如果有什麼問題 要趕快跟助教們約時間好好問一問 規則跟之前一樣 找子誠助教問問題 就有糖果吃喔 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.94.127

10/13 00:03, , 1F
哇塞 助教你好帥 穿制服看起來跟大一新生幾乎沒兩樣呀!!!
10/13 00:03, 1F

10/13 00:34, , 2F
助教你好帥 沒穿制服時看起來也跟大一新生一樣耶!!!
10/13 00:34, 2F

10/13 00:40, , 3F
助教你好帥 有穿跟沒穿制服時看起來都跟講歸一樣帥!
10/13 00:40, 3F

10/13 00:40, , 4F
教你好帥 沒穿衣服時看起來也跟大一新生一樣耶!!!
10/13 00:40, 4F

10/13 20:05, , 5F
助教你好帥 穿制服看起來跟大一新生幾乎沒兩樣呀!!!
10/13 20:05, 5F
文章代碼(AID): #15Bbz6Qe (NTUBIME-99)