cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
User input array problems
User input array problems
May 8, 2012 at 12:43am UTC
turning123
(1)
I am being asked to take the average of an array that is supposed to be populated by the user. I have already setup the averaging function and am just having a blank on how to properly fill the array with the users input. Please help, Thx.
May 8, 2012 at 1:55am UTC
paulthepenguin
(79)
Using a for loop, loop through every element of the array.
May 8, 2012 at 2:14am UTC
ResidentBiscuit
(4459)
1
2
3
for
(
int
i = 0; i < size - 1; i++){ cin >> arr[i]; }
Topic archived. No new replies allowed.