![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++
文章平均质量分 60
devil_08
这个作者很懒,什么都没留下…
展开
-
类的构造函数和析构函数的调用顺序(一)
先贴一段代码:#include "stdafx.h"#include <iostream>using namespace std;class Class1{public: Class1() :_index(0) { cout << "Create" << endl; } Class1(int index) :_index(index)原创 2017-11-14 10:55:44 · 2043 阅读 · 0 评论 -
【C++】面试算法题C++实现
题目一(数组中查找) 在一个二维数组中,每一行都按照从左到右递增的顺序排序,每一列都按照从上到下递增的顺序排序。请完成一个函数,输入这样的一个二维数组和一个整数,判断数组中是否含有该整数。class Solution {public:bool Find(int target, vector<vector<int> > array) { if (array.empty())return原创 2018-01-15 13:21:16 · 3648 阅读 · 0 评论