虚函数的默认参数
摘要:
FROM CSDN: #include using namespace std; class base { public: base(){} virtual int foo(int ival=10) { int real_default_value=1024; if(ival==10) ival=real_default_value; cout... 阅读全文
posted @ 2007-12-03 23:58 Camellia 阅读(645) 评论(3) 推荐(0) 编辑