My code is as follows:(other than the set up of my functions)
int main()
{
int number;
vector <int> ranVec(5000);
ranNum(ranVec);
sort(ranVec);
}
void ranNum(vector <int> &ranVec)
{
unsigned seed = time(NULL);
srand(seed);
for (int i = 0; i < ranVec.size(); i++)
{
ranVec[i] = rand();
}
}
void sort(vector <int> &ranVec)
{
//I get the error on my ranVac before the decimal place
//each time.
sort(ranVec.beg in(), ranVec.end());
}
int main()
{
int number;
vector <int> ranVec(5000);
ranNum(ranVec);
sort(ranVec);
}
void ranNum(vector <int> &ranVec)
{
unsigned seed = time(NULL);
srand(seed);
for (int i = 0; i < ranVec.size(); i++)
{
ranVec[i] = rand();
}
}
void sort(vector <int> &ranVec)
{
//I get the error on my ranVac before the decimal place
//each time.
sort(ranVec.beg in(), ranVec.end());
}
Comment