![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++
ZzebraA
这个作者很懒,什么都没留下…
展开
-
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 · 551 阅读 · 0 评论 -
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 · 348 阅读 · 0 评论