Documente Academic
Documente Profesional
Documente Cultură
//
#include "stdafx.h"
#include <iostream>
#pragma warning (disable :4996)
using namespace std;
class Student
private:
int* note;
int NrNote;
int medie;
bool integralist;
public:
char* nume;
int varsta;
Student();
Student(Student &s);
Student(char*nume, int* note, int NrNote , int varsta );
friend ostream & operator << (ostream &iesire, const Student s)
{
return *this
}
~Student()
delete[] nume;
delete[] note;
cout << " Am chemat destructorul " << endl;
};
this->medie = s.medie;
this->varsta = s.varsta;
this->integralist = s.integralist;
cout << " Constructorul de copiere " << endl;
inline Student::Student()
{
int main()
{
int note[] = { 5 , 7 , 9 , 10 , 7 };
Student s1;
Student s2 = s1;
Student s3;
Student s4("Mihai", note, sizeof(note) / sizeof(int), 12);
s3 = s4;
s3 = s2;
cout << s1;
//cout << s2;