dgquvn / repo

1 stars 1 forks source link

Properties should be stored in a map and not limited by number #6

Closed jayjaybillings closed 7 years ago

jayjaybillings commented 7 years ago

Lines 22 through 32 are as follow:

    ifstream inputFile("input.txt");
    vector<string> inputStr(5);
    if (inputFile.is_open()){
        for (int i = 0; i < 5; i++){
            string line;
            getline(inputFile, line);
            inputStr[i] = strRead(line);
        }

        inputFile.close();
    }

There are a few problems here that should be addressed.