aaaaaaaaaaa

closed account (3UMLy60M)
aaaaaaaaaaaa
Last edited on
filling monkeyFood array:
1
2
3
4
std::ifstream in("Days.txt");
for(int monkey = 0; monkey < MONKEYS; ++monkey)
    for(int day = 0; day < DAYS; ++day)
        in >> monkeyFood[monkey][day];
closed account (3UMLy60M)
MiiNiPaa,

That's awesome. Thanks so much for your help. The code worked, but how do I output the values that are now stored in the monkeyFood array?
Change last line to: std::cout << monkeyFood[monkey][day];
Topic archived. No new replies allowed.