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)。不知道怎么修改,神奇的是不影响运行出结果。