Question: I need help on reading this csv file properly in C++. My function reads the the first line but breaks afterwards. Please help!! My header

I need help on reading this csv file properly in C++. My function reads the the first line but breaks afterwards. Please help!!

My header file and cpp file.

I need help on reading this csv file properly in C++. My

My output:

function reads the the first line but breaks afterwards. Please help!! My

What the output should look like(the csv file).

header file and cpp file. My output: What the output should look

#include #include #include #include void readCsvToArray(Student array[], int size, ifstream& file) 7 string dummyString; getline(file, dummyString); 10 using namespace std; struct Student 11 int index = 0; char delim = ','; while (!file.eof() && index > array[index].id >> delim; int id; string lastName; string firstName; string ssn; float test[4]; float final; string letterGrade; char delim = ', '; getline(file, array[index].lastName, , getline(file, array[index].firstName, ...); file >> array[index].ssn >> delim; file >> array[index].test[4] >> delim; file >> array[index].final >> delim; getline(file, array[index].letterGrade, .,; 24 25 void menu(); void readCsvToArray(Student array[], int size, ifstream& file); #endif cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!