Hi everyone,
Ive got a question concerning an excersise I have to make in wich I use an array in a function:
I have to manually fill an array with twenty numbers randomly and the array has to be used by a function, now, I know how to do this automatically like this:
void settabel (int tabel[MAX]);
void main (void)
{
settabel(lijst):
}
void settabel int tabel[MAX])
{
for int (int i=0; i<MAX; i++)tabel=i+1;
]
In this case, the array gets filled automatically from 1 to 20, that's not a problem!
But how on earth can I use this type of function and manually with cin>> get that array filled with numbers??????
Thanks for any advice and help :!: