I am trying to write a code to read values from a csv file and store them in four separate arrays. Each row has 4 values. The first value will be stored in one array the second in another, the third in another, and the fourth in another. This is the code I have written so far:
while (FBWS.good())
{
    getline ( FBWS, infor,',');
    istringstream (infor) >> infoc;
    FBWSmin[i]=infoc;
    cout << FBWSmin[i-1] << " ";
    cout << FBWSmin[i] << "\n";
    getline ( FBWS, infor,',');
    istringstream (infor) >> infoc;
    FBWSplus[i]=infoc;
    getline ( FBWS, infor,',');
    istringstream (infor) >> infoc;
    FBWStax[i]=infoc;
    getline ( FBWS, infor,',');
    istringstream (infor) >> infoc;
    FBWSmax[0]=infoc;
    i=i++;
}
The value is stored in the array after one loop but after the next loop runs, the previous stored value resets to zero. I can't determine if its coding syntax or what.