LẬP TRÌNH NÂNG CAO PHÂN SỐ

3 65 0
LẬP TRÌNH NÂNG CAO PHÂN SỐ

Đang tải... (xem toàn văn)

Thông tin tài liệu

include #include #include //#include 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; for( int i=0; i

Ngày đăng: 26/02/2019, 19:52

Từ khóa liên quan

Tài liệu cùng người dùng

Tài liệu liên quan