Write a function in C++ to search and display details, whose destination is "Cochin" from binary file "Bus.Dat". Assuming the binary file is containing the objects of the following class: class BUS { int Bno; // Bus Number char From[20]; // Bus Starting Point char To[20]; // Bus Destination public: char * StartFrom ( ); { return From; } char * EndTo( ); { return To; } void input() { cin>>Bno>>; gets(From); get(To); } void show( ) { cout<};
Answers
Answered by
15
Answer:
Write a function in C++ to search and display details, whose destination is “Cochin” from binary file “Bus.Dat”. Assuming the binary file is containing the objects of the following class: class BUS { int Bno; // Bus Number char From[20]; // Bus Starting Point char To[20]; // Bus Destination public: char * StartFrom ( ); { return From; } char * EndTo( ); { return To; } void input() { cin>>Bno>>; gets(From); get(To); } void show( ) { cout<
Similar questions
Physics,
5 months ago
Social Sciences,
5 months ago
Computer Science,
11 months ago
Physics,
11 months ago
Physics,
1 year ago
Math,
1 year ago