摘要:
002:难一点的swap 这个题有点意思,注意理解指针的含义. 002.cpp #include <iostream> using namespace std; void swap( // 在此处补充你的代码 int *&a, int *&b ) { int * tmp = a; a = b; b 阅读全文
posted @ 2022-10-15 23:42
520Enterprise
阅读(121)
评论(0)
推荐(0)
摘要:
在开始愉快的PA之旅之前 超级马里奥真好玩(bushi) 搞了一波ccache,没搞好,从一点弄到两点,自闭了硬是没在/.bashrc下面找到他说的那个环境变量,打算明天(10.13)去请教一下学长了 发现时间不对,折腾了下时间$ sudo systemctl restart systemd-tim 阅读全文
posted @ 2022-10-15 13:04
520Enterprise
阅读(205)
评论(0)
推荐(0)
摘要:
注意new的使用 lab6_2.cpp #include <iostream> using namespace std; void swap(int &a, int &b) { /********** Begin **********/ int tmp = a; a = b; b = tmp; /* 阅读全文
posted @ 2022-10-15 02:30
520Enterprise
阅读(39)
评论(0)
推荐(0)
摘要:
client.cpp #include "client.h" void Client::ChangeServerName(char name) { /********** Begin **********/ Client::ServerName = name; Client::ClientNum + 阅读全文
posted @ 2022-10-15 02:10
520Enterprise
阅读(27)
评论(0)
推荐(0)