2011年1月3日 星期一

C++考前筆記

1.
explicit 是用來防止constructor自動隱含對單一的參數呼叫constructor

Ball(const char*); //這是constructor

Ball ball = "Green ball"; //會讓這行自動成立

2

沒有留言: