小编Syd*_*.Ka的帖子

为什么管道的容量有限?

我读过管道需要具有有限的容量。但我不明白为什么。如果进程无限制地写入管道会发生什么?

c unix system-calls

7
推荐指数
2
解决办法
387
查看次数

在 C++ 中混合覆盖和重载

我不明白为什么error: no matching function for call to ‘Child::m(Mother&)在尝试编译代码时会出现此错误。

据我所知:由于 c 的类型是Child, Child::m 有一个类型参数,Child而 m 是Motherin类型,c.m(m)那么需要调用来自 Mother 类的函数 m() 。

class Mother{
 public: 
  void m(const Mother&) {
  }
};

class Child: public Mother{
 public:
  void m(const Child&) {
  }
};



int main() {
  Mother m;
  Child c;
  c.m(m);
}
Run Code Online (Sandbox Code Playgroud)

c++ debugging computer-science

2
推荐指数
1
解决办法
55
查看次数

标签 统计

c ×1

c++ ×1

computer-science ×1

debugging ×1

system-calls ×1

unix ×1