i want to coppy the data for example myfile.txt into a class named student which has a different members in it for exaple student name,roll number and password;
how am i able to suppose to put every value differently,
//myfile.txt
TURBO-l3314-ahscsa12
i have to put each value into the private members each student will have different name pass and roll number regardless
class student
{
private:
string name;
string password;
string rollno;
string creation_date;
bool degree_type;
int fee;
int no_of_courses;
Course * courses;
Might have better luck reposting this in the "Beginners" or "General C++" sections. The lounge is typically for non-programming topics, or to just discuss things.