diff --git a/schedule/students_classes.csv b/schedule/students_classes.csv index 61033aa..3693a3e 100644 --- a/schedule/students_classes.csv +++ b/schedule/students_classes.csv @@ -1,5 +1,5 @@ -StudentCode,StudentName,UcCode,ClassCode -202025232,Iara,L.EIC002,1LEIC05 +StudentCode,StudentName,UcCode,ClassCode +2020252£2,Iara,L.EIC002,1LEIC05 202031607,Gisela,L.EIC004,1LEIC08 202031607,Gisela,L.EIC005,1LEIC08 202079037,Jose Jesualdo,L.EIC023,3LEIC08 diff --git a/src/CSVStudentsClasses.cpp b/src/CSVStudentsClasses.cpp index 32f6b56..0a2b375 100644 --- a/src/CSVStudentsClasses.cpp +++ b/src/CSVStudentsClasses.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -30,11 +31,12 @@ CSVStudentsClasses::CSVStudentsClasses(const std::string &csv) { std::string line; this->entries = std::vector(); if (!getline(s, line, '\n')) { - std::cerr << "ERROR: CRITICAL: INVALID FILE CSVSTUDENTCLASSES" << std::endl; + std::cerr << "ERROR: CRITICAL: INVALID FILE CSVSTUDENTCLASSES(0)" << std::endl; std::exit(1); } if (line != "StudentCode,StudentName,UcCode,ClassCode") { - std::cerr << "ERROR: CRITICAL: INVALID FILE CSVSTUDENTCLASSES" << std::endl; + std::cout << line <<" != " << std::string("StudentCode,StudentName,UcCode,ClassCode") << std::endl; + std::cerr << "ERROR: CRITICAL: INVALID FILE CSVSTUDENTCLASSES(1)" << std::endl; std::exit(1); } line.clear();