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; } };
1 ответ
+ 1
try to do your own code for your task and if you have doubts, please, ask