随笔分类 - C++程序设计
来自清华大学慕课
摘要:002:难一点的swap 这个题有点意思,注意理解指针的含义. 002.cpp #include <iostream> using namespace std; void swap( // 在此处补充你的代码 int *&a, int *&b ) { int * tmp = a; a = b; b
阅读全文
摘要:注意new的使用 lab6_2.cpp #include <iostream> using namespace std; void swap(int &a, int &b) { /********** Begin **********/ int tmp = a; a = b; b = tmp; /*
阅读全文
摘要:client.cpp #include "client.h" void Client::ChangeServerName(char name) { /********** Begin **********/ Client::ServerName = name; Client::ClientNum +
阅读全文