![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++复习
文章平均质量分 92
归途醉染
路,不通时,选择拐弯,心,不快时,选择看淡;情,渐远时,选择随意。
展开
-
C++复习
制作人:BIN,2017.1.1 对C++的理解: C和C++的不同之处: C版本的hellowrold #include void main(void) { printf("hell wrold\n"); } C++版本: #include using namespace std; void main() { cout"hello wrold\n"<<endld }原创 2016-12-29 16:25:59 · 221 阅读 · 0 评论 -
实现String类
class MyString原创 2017-08-09 00:01:37 · 153 阅读 · 0 评论 -
C++STL复习
#include<iostream> #include<vector> #include<string> #include<algorithm> using namespace std;void printvector(int val) { cout << val << " "; }void test1() { vector<int>v; v.push_back(1);原创 2017-08-15 12:45:37 · 256 阅读 · 0 评论 -
面试复习...
const与static的作用:static: 1)函数体内static变量的作用范围为函数体,和auto变量不同,改变量的内存只被分配一次,因此其值在分配的时候和上次值一样 2)在模块内的static全局变量可以被模块内的所有函数访问,但不能被模块外的其他函数访问 3)在模块内的static函数只可被这一模块内的其他函数调用,这个函数作用访问被限制在其声明模块内 4)在类中的static成原创 2017-07-05 23:03:25 · 553 阅读 · 0 评论