Computer Science, asked by harichandeela1576, 9 months ago

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 itzJitesh
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