I have this function:
void getInput(vector<void*> &list)
{
int qty, large;
cout<<"How many random numbers do you wish to have? ";
cin>>qty;
cout<<"What is the largest number you wish to see? ";
cin>>large;
list.resize(qty+1);
for(int i = 0; i < qty; i++)
{
int x = (rand()%(large+1));
*((int*)list[i])=x;
}
}
and it's crashing on the line
*((int*)list[i])=x;
in which I am stuck on how to fix. I am very new to this, and I've been searching books and websites...I only ask to be lead on the correct track. Thank you in advance!