Здравствуйте, кто-нибудь может подсказать как исправить ошибку.
Group group(5);
for (int i = 0; i < group.getSize(); ++i) {
Plane plane(reis[i+1], dates[i+1], summs[i+1]);
group.putPlane(i, plane);
}
"a reference of type (not const-qualified) cannot be initialized with a value of type" - вот код putPlane:
void Group::putPlane(int i, Plane &plane) {
planes[i] = plane;
}
подчёркивается plane в group.putPlane(i, plane);