C++ explicit 关键字
摘要:
1 /* 2 *C++ explicit 关键字 3 * 4 *It prevents constructor class from being used to perform implicit type conversion 5 * 6 *Author: MagicYun star3012@qq.com 7 * 8 */ 9 10 11 #include <iostream>12 using namespace std;13 14 class Student15 {16 public:17 Student(int age){};18 ~Student(){};19 };20 21 阅读全文
posted @ 2011-04-11 22:37 MagicYun 阅读(141) 评论(0) 推荐(0)
浙公网安备 33010602011771号