I just had an array lesson with my professor but still sort of clueless on one of his assignment by using calling function of array. Some helps for hints would be so much appreciate.
Here's the part that I stuck on:
using calling statement:
int main()
{ int a[10];
//assign 10 random intergers between 1 and 100 to array a
Assign (a);
//Display array a
Display (a);
return 0;
}
I know for the random generate must be using the <ctime> but I am so lost while trying to putting them into a function. This is what I had so far, I know it's not right but I really tried my best to pulling every out on top of my mind on this small piece.
I do not acquainted with <cstdlib> library base on lesson I had so far. Are there anyway to using <ctime> library for the legitimate knowledge base on the first beginning level of C++?
You do not need detailed knowledge to use libraries. You merely need to know what libraries contain what information. For this problem you need to use <cstdlib>. For others, you can use <ctime>.
For more information, you can always use google :) or books or other resources.