c++ Read from .csv file
You can follow this answer to see many different ways to process CSV in C++. In your case, the last call to getline is actually putting the last field of the first line and then all of the remaining lines into the variable genero. This is because there is no space delimiter found up until the end of file. Try … Read more