Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在
啊啊啊
class A{ private: static struct pollfd fds[2]; }
我应该如何初始化 A.cpp 文件中的结构?
如果pollfd包含两个整数元素,你可以这样做:
pollfd
struct pollfd A::fds[2] = {{1, 2}, {3, 4}};