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

4 57 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 class ts { private: float *a; int n; public: ts(); ~ts(); void nhap(); void xuat(); ts operator=(ts &); float tb(); float max(); friend int soso(ts &a,ts &b); }; ts::ts() { n=0;a=NULL; }; ts::~ts() { n=0;delete a; }; void ts::nhap() { cout>n; a=new float[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