Question: 3. Files. Write the constructor for toptenresults. It should work like this: if there is no binary file called topten.bin, the constructor will create the
3. Files. Write the constructor for toptenresults. It should work like this: if there is no binary file called "topten.bin", the constructor will create the file and write 10 empty results (score 0, nickname " ") into it. If the file exists, the constructor reads its contents.
In main(), introduce a variable whose type is toptenresults.
Note: I need an answer on c++ coding.. please do it fast its urgent.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
