84669 Lernen von Personen
152542 Lernen von Personen
20005 Lernen von Personen
5487 Lernen von Personen
7821 Lernen von Personen
359900 Lernen von Personen
3350 Lernen von Personen
180660 Lernen von Personen
48569 Lernen von Personen
18603 Lernen von Personen
40936 Lernen von Personen
1549 Lernen von Personen
1183 Lernen von Personen
32909 Lernen von Personen
我有两个类Population和Group,因为要写一个Group的成员函数
void initialize(Population<T> &p, const int id);
但我已经加载了Population的头文件,IDE却提示我Population' has not been declared,请问这是什么情况??
Population' has not been declared
这是Population的内容和位置
人生最曼妙的风景,竟是内心的淡定与从容!
include路径都是从当前路径开始的. 你显示的图. 有些不太懂. 但是根据图像信息. 我写了一下, 你试一下吧.
include
问题已经解决了,因为Population.h中已经包含了Group文件。所以在Group类的上面声明一下Population类就可以使用了。。
include
路径都是从当前路径开始的. 你显示的图. 有些不太懂. 但是根据图像信息. 我写了一下, 你试一下吧.问题已经解决了,因为Population.h中已经包含了Group文件。所以在Group类的上面声明一下Population类就可以使用了。。