September 8th, 2009, 08:06 PM
void Vecs (vector <int> & v1, vector <int> & v2, int s1, int s2)
{
srand(s1);
for (int i = 0; i < v1.size(); i++)
v1[i] = rand() % (RND_NO_RANGE + 1);
srand(s2);
for (int i = 0;i <...
September 8th, 2009, 08:02 PM
Thank you for the links i think i understand srand and rand better. I still don' understand what is wrong with my code thought the one i just put up. rand has no arguments and srand is starting the...
September 8th, 2009, 07:37 PM
ok so guess my question is how to effectively use srand with multiple seeds i have now eliminated my errors but do not fully understand the concept
void Vecs (vector <int> & v1, vector <int> &...
September 8th, 2009, 07:17 PM
i have found 2 mentions of srand in your reference neither really helped me.
i know i have found the problem but i don't understand why it is happening. can you explain to me why it is happening?
September 8th, 2009, 06:56 PM
i have read what i believe to be a good description and sample however when i seem to write my own i get errors first being the "error: void value not ignored as it ought to be" i believe i need a...
September 8th, 2009, 06:39 PM
i have changed the srand to rand and now i get another error
void Vecs (vector <int> & v1, vector <int> & v2, int s1, int s2)
{
for (int i = 0; i < v1.size() and i < v2.size(); i++)
{...
September 8th, 2009, 05:44 PM
i have a function that seems simple but you know those simple ones.
void Vecs (vector <int> & v1, vector <int> & v2, int s1, int s2)
{
for (int i = 0; i < v1.size() and i < v2.size(); i++)...
April 8th, 2009, 04:37 PM
we want to
1. remove
2. loop
3. retrieve
4. insert
some instructions for:
If the number of nodes is greater than 1, then perform a recursive call passing a reduced size. For the base...
April 8th, 2009, 02:36 PM
i am working on a program.
working with linked lists.
i am using an insort recursively to do an ascending sort.
i have a method called retrieve that retrieves the value of a node.
how would i get...