@confounded-T5TGCW
•
Oct 26, 2024
Oct 26, 2024
1.5K
help- unable to write and read objects into file.
this is my code:
#include<fstream.h>
#include<conio.h>
#include<stdio.h>
#include<string.h>
struct _date
{
int dd,mm,yy;
};
struct _time
{
int hour,min;
};
class Train
{
private:
int trainno;
char from[20],to[20],station1[20];
_date ddate,s1date,adate;...