So im doing an assignment for class and im not sure what/how to proceed, im struggling with storing randomly generated numbers in an array and then calling on them later to display how many times the random number has been called them. as you might notice i already have my first array and is used to display 100 random numbers between 0 through 9. been stuck for a while now and am finally at the point where i need some help on understanding where/what to do from here.
just a heads up i am still very new to c++ so forgive my unorganization, i have yet to set up my void function above the int main.
#include <iostream>
using namespace std;
int main()
{
int randomnumber[100], storenumber[10] = {0,0,0,0,0,0,0,0,0,0};
for (int i = 0; i < 100; i++ )
{
randomnumber[i] = rand()%10;
}
system("PAUSE");
return 0;
}
void count (int &x, int &n)
{
x = [0];
storenumber[1] = ;
storenumber[2] = ;
storenumber[3] = ;
storenumber[4] = ;
storenumber[5] = ;
storenumber[6] = ;
storenumber[7] = ;
storenumber[8] = ;
storenumber[9] = ;
}