int games[3] = { };
cout << " ";
cin >> games[0];
cout << " ";
cin >> games[1];
cout << " ";
cin >> games[2];
[Edited by - emforce on June 7, 2009 7:02:13 AM]
solved
hi guys wondering if you could help i am currently learning how to do arrays and was wondering why this doesn't work?
i have an array for gamecosts[3] which works fine but when i implemented this it didn't work any clues? when i run the program it just skips it and goes onto the gamecosts[3] array. what am i doing wrong?
Frankly, I don't understand your problem. The code works fine for me.
Be more precise. What exactly do you expect to happen?
Be more precise. What exactly do you expect to happen?
i didn't think it was the code the first time i tried it but even if i write a simple output line it still doesn't seem to pick up the new code
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement