Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (16.61 KB, 3 trang )
include<iostream.h>
#include<conio.h>
#include<stdio.h>
//#include<iomanip.h>
class N_ARR
{ float *a;
int n;
public:
N_ARR();
~N_ARR()
{ delete a; };
N_ARR operator=( N_ARR &);
void nhap();
void xuat();
float gttb();
float
max();
friend int so_so( N_ARR &, N_ARR&);
};
N_ARR::N_ARR()
{ n=0; a= NULL;};
N_ARR N_ARR::operator=( N_ARR &m2)
{ n =m2.n;
a=new float[n];
return m2;
};
void N_ARR::nhap()
{ cout<<"\n so phan tu:";
a=new float[n];