i'm trying to copy members from one structure to another structure, but i have no clue how to do so.
struct StudentTxt
{
int ID;
string lname;
string fname;
string initial;
int age;
double balance;
};
struct StudentBin
{
int ID;
int age;
double balance;
char fullname[50];
};
i read the file and store all the data into the first structure, and after that i combined the lname, fname,initial into one string.
the question is i'm trying to copy the string to the fullname in the second structure, and also the ID, age, Balance.
can someone guide me to the right path.
any help will be appreciated.