练习28
来源:互联网 发布:java wait例子 编辑:程序博客网 时间:2024/06/05 11:08
#include <iostream>
#include "client.h"
using namespace std;
int Client::ClientNum = 0;
char Client::ServerName = 'a';
int main()
{
Client c1;
c1.ChangeServerName('a');
cout << c1.getClientNum() << endl;
Client c2;
c2.ChangeServerName('b');
cout << c2.getClientNum() << endl;
return 0;
}
#include "client.h"
using namespace std;
int Client::ClientNum = 0;
char Client::ServerName = 'a';
int main()
{
Client c1;
c1.ChangeServerName('a');
cout << c1.getClientNum() << endl;
Client c2;
c2.ChangeServerName('b');
cout << c2.getClientNum() << endl;
return 0;
}
阅读全文
0 0
- 练习28
- 练习28
- 【SICP练习】28 练习1.34
- Python 练习实例28
- leetCode练习(28)
- C 练习实例28
- 28-29.个人练习。
- Python 练习实例28
- 练习
- “++”“--”练习
- 练习
- 练习
- 练习
- 练习
- 练习
- 练习
- 练习
- 练习
- Kotlin 编程规范
- MSSQL交叉表查询
- 手机数据抓包以及wireshark技巧
- poj 1068
- 1005: 整数幂
- 练习28
- 集合框架
- IMU.c(参考匿名的)
- linux下查看硬盘信息、硬盘分区、格式化、挂载、及swap分区
- 1006: 求等差数列的和
- 搭建博客网站详细报告
- MOTO.c(参考匿名的)
- 线程的同步与互斥:条件变量&信号量
- 哥伦比亚大学 Columbia University Image Library (COIL-20) 数据集