I am getting way too many errors such as member in accessible.Please solve this project. 3 files are required.
here in the main.cpp file,
Sample Driver Code
cs101::FlashDrive drive1( 10, 0, false );cs101::FlashDrive drive2( 20, 0, false ); drive1.plugIn( );drive1.formatDrive( );drive1.writeData( 5 );drive1.pullOut( );drive2.plugIn( );drive2.formatDrive( );drive2.writeData( 1 );drive2.pullOut( );cs101::FlashDrive combined = drive1 + drive2;cout << “this drive’s filled to ” << combined.getUsed() << endl;cout << “this drive’s capacity is ” <<combined.getCapacity() << endl;cs101::FlashDrive other = drive1 – drive2;cout << “the other drive’s filled to ” <<other.getUsed( ) << endl;cout << “the other drive’s capacity is ” <<other.getCapacity() << endl;if (combined