Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: javajax

Search: Search took 0.02 seconds.

  1. Re: void value not ignored as it ought to be

    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() &#37; (RND_NO_RANGE + 1);
    srand(s2);
    for (int i = 0;i <...
  2. Re: void value not ignored as it ought to be

    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...
  3. Re: void value not ignored as it ought to be

    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> &...
  4. Re: void value not ignored as it ought to be

    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?
  5. Re: void value not ignored as it ought to be

    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...
  6. Re: void value not ignored as it ought to be

    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++)
    {...
  7. [RESOLVED] void value not ignored as it ought to be

    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++)...
  8. Replies
    3
    Views
    4,610

    Re: recursive ascending order insertion sort

    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...
  9. Replies
    3
    Views
    4,610

    recursive ascending order insertion sort

    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...
Results 1 to 9 of 9


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center