[問題] 作業一問
開發平台(Platform): (Ex: VC++, Gcc, Linux, ...) VS2008
額外使用到的庫(Library Used) (Ex: OpenGL, ...) 無
問題(Question):
http://codepad.org/uyQlXuIy
class Person
{
private:
string Name;
Date birthday; <===== 這裡過不了
下面有宣告一個
class Date
{
private:
int year;
int month;
int day;
public:
Date()
{
year = 1911;
month = 1;
day = 1;
}
Date(int month, int day, int year)
{
this->year = year;
this->month = month;
this->day = day;
}
};
因為我呼叫的方法是固定的
Person per1("Andy",Date(1911,2,22));
^^^^^^^^^^^^^^^
不知道怎麼改 或是我的寫法完全不行??
餵入的資料(Input): 無
預期的正確結果(Expected Output): compilar 過
錯誤結果(Wrong Output): compilar 過不了XD
程式碼(Code): (請善用置底文標色功能)
http://codepad.org/uyQlXuIy
補充說明(Supplement):
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.118.205.184
→
01/10 14:28, , 1F
01/10 14:28, 1F
→
01/10 16:07, , 2F
01/10 16:07, 2F
→
01/10 16:07, , 3F
01/10 16:07, 3F
→
01/10 16:09, , 4F
01/10 16:09, 4F
→
01/10 16:12, , 5F
01/10 16:12, 5F
→
01/10 16:34, , 6F
01/10 16:34, 6F
→
01/10 16:35, , 7F
01/10 16:35, 7F
→
01/10 16:47, , 8F
01/10 16:47, 8F
→
01/10 16:56, , 9F
01/10 16:56, 9F
推
01/10 18:24, , 10F
01/10 18:24, 10F
→
01/10 20:38, , 11F
01/10 20:38, 11F
→
01/11 16:15, , 12F
01/11 16:15, 12F