- 博客(3)
- 收藏
- 关注
原创 C++ 定义静态数据成员
静态数据成员必须初始化如果初始化时没有赋值,用户定义的类将调用默认的constructor;buind-in type将初始化为0例如#includeusing namespace std;class Class{ public: static int i;}; int Class::i;int main(){ Class a; cout << a.i << e
2016-03-29 15:01:34 557
原创 hiho一下 第八十九周 Divisors
描述Given an integer n, for all integers not larger than n, find the integer with the most divisors. If there is more than one integer with the same number of divisors, print the minimum one.输入One
2016-03-18 20:02:00 379
原创 Thinking in c++ exercise 4-26 关于二维数组指针
题目描述:Write a function that takes two int arguments,rows andcolumns. This function returns a pointer to a dynamicallyallocated two-dimensional array offloat. As a hint, the first call tonew is:
2016-03-12 13:49:01 353
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人