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
English,
4 months ago
India Languages,
4 months ago
Computer Science,
4 months ago
Computer Science,
9 months ago
Physics,
9 months ago
Physics,
11 months ago
Math,
11 months ago