亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

IntelliSense: no instance of constructor "Watch::Watch" matches the argument list argument types are: (Time)

class Watch
{
public:
?Watch(Time t) :m_tTime(t.m_iHour,t.m_iMinute,t.m_iSecond)
?{

?}
?void display()
?{
??cout << m_tTime.m_iHour << endl;
??cout << m_tTime.m_iMinute << endl;
??cout << m_tTime.m_iSecond << endl;
?}
public:
?Time m_tTime;
};

類Watch是這樣實現的,但是運行后錯誤列表里針對mian中Watch w(t);有個:IntelliSense: no instance of constructor "Watch::Watch" matches the argument list argument types are: (Time)。不知道怎么修改,神奇的是不影響運行出結果。

正在回答

1 回答

我把你的代碼跑了一下發現沒問題啊,也沒有編譯錯誤,你是不是別的部分有問題?貼出來看看

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
C++遠征之模板篇
  • 參與學習       91140    人
  • 解答問題       325    個

本C++教程力求即學即會,所有知識以實踐方式講解到操作層面

進入課程

IntelliSense: no instance of constructor "Watch::Watch" matches the argument list argument types are: (Time)

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號