摘要:
反思两个问题 1. 带默认参数的函数,为何声明、定义不能同时有参数? 2. 带默认参数的函数, 为何带默认参数的参数靠后站?上程序#include #include using namespace std;class A{ public: A(const string &a = "hello, nihao!", int b = 67); private: string s; int sb;};A::A(const string &a, int b) : s(a), sb(b){ cout #include #include #... 阅读全文
posted @ 2013-12-28 23:42
jihite
阅读(12924)
评论(1)
推荐(0)

浙公网安备 33010602011771号