摘要:
Design an algorithm to find the kth number such that the only prime factors are 3,5 and 7方法一:a[i]=min{a[s1]*3,a[s2]*5,a[s3]*7};s1a[i-1],a[s2]*3>a[i-1]... 阅读全文
摘要:
#includeclass A{ private: const A& operator=(const A&);};int main(){ A a; A b = a;//ok,实际上是A b(a),即调用拷贝构造函数 A c; c = a;//error,因为'='已被声明为私有 r... 阅读全文