Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Class template.

Status
Not open for further replies.

akashvij

Technical User
Mar 11, 2002
19
0
0
US
hello everybody
I am working on a class project on class template. i have to give member function definition. Plz help me i am not able to understand what i am suppose to do. Plz give me some hints or explanation about it.Member function is

bool readFromFile(char *fileName)-> read data of type t from the file named 'filename',and store the data into the array.Returns true if reading was successful,false otherwise.
and i have one more member function
bool printIntoFile(char *fileName)->dump the contents of the array into a file named 'filename'.Return true if writing was succesful, false otherwise.

We have two files integerdata.txt and doubledata.txt.
If you guys provide me some help in code i will be very greatful.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top