I have .csv file with 502 lines and i want to organize them so that i can later sort them by duration,weekday,etc. I thought the best way to do this is creating sruct for each attribute but i dont know how to assign each attribute to the struct. Help pls
#include <iostream>
#include <fstream>
using namespace std;
struct classesstruct{
    string cadeira;
    string uccode;
    string weekday;
    int starthour;
    int duration;
    string type;
};
int main() {
    classesstruct Classes[502];
   ifstream myFile;
   myFile.open("C:/Users/utilizador/TrabalhoAED/classes.csv");
   while(myFile.good()) {
       string line;
       getline(myFile, line);
  
       
       
   }}```
