C++中类的前置声明问题

 

不知道为什么,在编译时,编译器没有去找3处的声明,现在的情况是可能PersonBase在main中时,编译器不知道要给它分配 多少内存,导致后面的error,有大老知道的请告知哈。(后面有时间时,会深入的去研究)

参考:

https://www.iteye.com/blog/aigo-1922330

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-14
  • 2021-07-13
  • 2021-11-16
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-15
  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案