0

Assuming the class COLLEGE,write a function in C++ to perform the following.

(i)Write the objects of COLLEGE to a binary file. (ii)Reads the objects of COLLEGE from binary file and display them on the screen. class COLLEGE { char name[20]; char place[20]; public: void getdata() { cin>>name; cin>>place; } void display() { cout<<name; cout<<place; } };

14th Nov 2017, 3:39 PM
Geoffrey N Agwata
Geoffrey N Agwata - avatar
1 Odpowiedź
+ 1
try to do your own code for your task and if you have doubts, please, ask
14th Nov 2017, 9:28 PM
Daniel
Daniel - avatar