C++ Homework (friends function, describing members and friends after class)

profilefer7i

Given the following class declarations

 

class THREE

{ private: int a[5];

public: void CopyData(string fname);

void SortArray();

void DisplayArray();

~THREE();


};

 

and the following three files: (a): convert the class to a class template to receive the type and the size of array a. Describe all members after class. (b): we want to display the sorted form of each file by 1-copying data from file into array a,9

2- sort array a,9

3- display the sorted form of array a

 

complete questions in attachment.

  • 11 years ago
  • 35
Answer(0)
Bids(0)