For a class I am taking I need to produce 1000 random numbers and store them in an array. I am totally lost and need some help. If someone can get me started on the program it would help me. Also, i need to write a function to find the array's max, min, and average values.
Slate2006 0 Newbie Poster
Recommended Answers
Jump to PostDid you search for previous answers to this common problem?
> I am totally lost and need some help.
I'm going to assume that you've successfully completed some previous assignment, and that the idea of being "totally" lost is an exaggeration.For example, could you write a program …
Jump to Post> int line(int, int);
If you make this match your function definition, that would be an improvement.> line(array, size);
To pass an array to a function, it's just the array name, like so
line(array, size);> cout << array;
Use the same kind of for loop you …
All 7 Replies
Salem 5,265 Posting Sage
zandiago 115 Nearly a Posting Maven Featured Poster
Slate2006 0 Newbie Poster
zandiago 115 Nearly a Posting Maven Featured Poster
zandiago 115 Nearly a Posting Maven Featured Poster
Salem 5,265 Posting Sage
Etniespr101 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.