Во код:
#pragma once
#include <iostream>
#include <string>
using namespace std;
class Student {
private:
//string *st;
/*int n;
string student[10];
int n = 10;
int *ege = new int[n];
*/
string student;
int n;
int *Evaluation;
int size;
public:
Student() {
this->size = 0;
int *ege = new int[size];
const int n = 10;
string student[n];
}
~Student() { cout << "Destruktor is working" << endl; }
};
Короче, сталкер смотри сюда тык
class Student {
private:
int *ege ;
public:
Student(int size) {
this->ege = new int[size];
for(int i=0;i<size;i++)
{
cin>>ege[i];
}
}
~Student() { cout << "Destruktor is working" << endl; }
};
Апостиль в Лос-Анджелесе без лишних нервов и бумажной волокиты
Основные этапы разработки сайта для стоматологической клиники
Продвижение своими сайтами как стратегия роста и независимости