![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
CPP学习
zydapangzi
还是菜鸟,需要努力
展开
-
重定义缺省参数
参考此程序: class A { public: virtual void func(int i =1) { std::cout << "A->" << i << std::endl; } virtual void test() { func(); } }; class B...原创 2019-02-18 10:52:04 · 174 阅读 · 0 评论 -
leetcode题目一Two Sum
1.Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution, and you may not use the sam...原创 2019-01-24 17:28:58 · 137 阅读 · 0 评论