嘿小黑子💤
幸运的嘿小黑子
关注数: 3
粉丝数: 30
发帖数: 67
关注贴吧数: 20
如果决战紫禁之巅是当年的大电影 会怎样
一次断电后出现的问题 在一次断电后,无法用tailscale在外网访问unraid webui,但是可以在外网访问qbit的8080端口,在内网仍然可以访问unraid的webui,请问可能是什么问题?
一次断电后出现的问题 在一次断电后,无法用tailscale在外网访问unraid webui,但是可以在外网访问qbit的8080端口,在内网仍然可以访问unraid的webui,请问可能是什么问题?
组队组队,不鸽 【墨墨背单词】嘿小黑子:与我组队背单词 💪 复制墨口令 👉🏻 a:/¥1VigOo4htd¥ 到墨墨背单词 APP 打开
关于TCP流量控制 想问一下,在tcp流量控制中,接收方缓存已存满,receive window=0,在将这个信息告诉发送方后,为啥会阻塞呀?接收方在清理缓存的过程中不会发ACK吗?
关于import的使用问题 想问一下为啥from ani import cat可以,import ani.cat不行呀? 还有,在tree.py文件里from ..ani import cat 和 import ..ani.cat 都不行。。这应该怎么导入呢?
关于C++爬虫 想问下c++有没有类似于python request,beautiful soup之类的库,想用c++爬虫但是完全没有头绪啊?(刚入门,想在深入学习前写一点小东西,请教一下这方面该怎么学习。。。
关于Qt组件的选择 第一次想用c++写点应用程序, 下了Qt,但是不清楚该怎么选组件。。。求指教
关于优先队列top()访问 #include <iostream> #include <queue> #include <time.h> using namespace std; const int SPLIT_TIME_MIN = 500; const int SPLIT_IIME_MAX = 2000; class Cell; priority_queue<Cell> cellQueue; class Cell { private: static int count; int id; int time; //分裂时间 public: Cell(int birth) : id(count++) { time = birth + (rand() % (SPLIT_IIME_MAX - SPLIT_TIME_MIN) + SPLIT_TIME_MIN); } int getId() const { return id; } int getSplitTime() const { return time; } bool operator<(const Cell& c) const { return time > c.time; } void split() const { Cell child1(time), child2(time); cout << time << "s: Cell #" << id << " split to #" << child1.getId() << " and #" << child2.getId() << endl; cellQueue.push(child1); cellQueue.push(child2); } }; int Cell::count = 0; int main() { srand(static_cast<unsigned>(time(0))); int t; cout << "Simulation time: "; cin >> t; cellQueue.push(Cell(0)); while (cellQueue.top().getSplitTime() <= t) { cellQueue.top().split(); cellQueue.pop(); } return 0; }优先队列的top()函数是不是只能调用带有const修饰的成员函数呀? 但是top()不是返回最大元素的引用吗?
关于友元函数无法使用类的私有成员 想请问一下为什么这里的友元函数不能使用类的私有成员?
关于对象数组初始化的问题 最近刚开始学习c++,不太懂这个error。
c++初学者提问
1
下一页