摘要:
运行sudo apt install python3-full即可 阅读全文
摘要:
Epoll: Level-triggered and edge-triggered edge-triggered The epoll event distribution interface is able to behave both as edge-triggered (ET) and as l 阅读全文
摘要:
读《TCP&IP网络编程》 面向连接的套接字(SOCK_STREAM) 传输过程中,数据不会丢失 按序传输数据 传输的数据不存在数据边界 类似于传送带,较晚发送的数据不会先到达 收发数据的套接字内部有缓冲(Buffer) 面向连接的套接字中,read和write的次数并无太大的意义。当read速度小 阅读全文
摘要:
int strStr(string &haystack, string &needle) { const int needlesize = needle.size(); if (needlesize == 0) { return 0; } vector<int> next(needlesize, 0 阅读全文
摘要:
先上代码: class KMP { using DFA_t = vector< vector<int> >; public: KMP(const string &needle) : m_NeedleSize{ (int)needle.size() }, m_DFA(TOTAL_CHAR, std:: 阅读全文
摘要:
C++代码如下: class parent_parent { public: virtual int print() const { return 1; } }; class sub : public parent_parent { public: int print() const overrid 阅读全文
摘要:
代码: #include <stack> #include <iostream> #include <vector> #include <random> #include <time.h> using std::cout; using std::stack; using std::vector; u 阅读全文
摘要:
关于MonoBehaviour.OnTriggerEnter和MonoBehaviour.OnCollisionEnter 整理关于OnTriggerEnter和OnCollisionEnter的触发条件 对于三个带有collider组件的gameObject A,B,C: 当对象A未勾选Is Tr 阅读全文