![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++学习
文章平均质量分 54
c++学习笔记
weixin_43371635
这个作者很懒,什么都没留下…
展开
-
xinetd(安装及配置xinetd)
安装及配置xinetd 1. sudo apt-get install xinetd (sudo aptitude show/install xinetd) 2. sudo vi /etc/xinetd.d/myhttpd (注意三个统一) service myhttpd { socket_type = stream protocol = tcp wait = no user ...原创 2021-12-08 17:34:03 · 1162 阅读 · 0 评论 -
c++ 静态成员和方法(分文件来实现static成员变量和方法有几个注意的地方c++ 11)
static 成员变量是作用于整个类的,存储区是静态区,并不占用类的大小。 class AA { public: AA(int a, int b) { m_a = a; m_b = b; } int getC() { m_c++; return m_c; } //静态的成员方法 static int& getCC() { return m_c; } private: //static修饰的静态成员变量 static int m_c; int m_a;原创 2021-11-27 13:26:45 · 591 阅读 · 1 评论