I need help to store my data i read from a cvs file, how do i input it into my arrays and use it to manipulate in other
#include <iostream>
#include <iomanip>
#include <string>
#include <cmath>
#include <stdio.h>
#include <fstream>
using namespace std;
const int MAX_ARRAY_SIZE = 120;
void getData (string city[], string country[]), double lat[], double lon[];
int main()
{
string city[MAX_ARRAY_SIZE];
string country[MAX_ARRAY_SIZE];
double lat[MAX_ARRAY_SIZE];
double lon[MAX_ARRAY_SIZE];
ifstream inFile; //input file stream variable
inFile.open("worldcities.cvs"); //opens the input file
for (int index = 0; index < MAX_ARRAY_SIZE; index ++)
{
// how to send data to each array to be used in another function?
}
inFile.close();