[學業] [計程] 作業二 程式逼 課本習題3.15的題目
沒有買課本的同學們有福了
這裡有助教親手排版的題目原文
當然,如果跟課本有什麼不同,一切以課本為主
大家要準時交作業喔
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