嗨!我是 C++ 新手,我尝试制作一些动态结构。这些是:
class Cschools
{
struct Syear
{
float *marks;
};
};
int main()
{
Cschools *school=new Cschools[5]; //this linking is pretty good
school[0].Syear *year=new school[0].Syear[5]; //there are some errors
return 0;
}
有人可以帮忙吗?