Search:

Type: Posts; User: pheininger

Search: Search took 0.01 seconds.

  1. You are getting good advice above. Making the...

    You are getting good advice above.

    Making the first malloc() into a calloc() is not necessary since immediately you initialize all of the elements of this dimension in the first for loop when you...
  2. Old: double arr[30][30]; New: double...

    Old:
    double arr[30][30];
    New:
    double arr[30][30]={0.0};



    Old:

    i= (int) rand()%30;
  3. I am going to assume that you are now explicitly...

    I am going to assume that you are now explicitly initializing review[MAX_REVIEWERS][MAX_OBJECTS] (formerly known as arr[30][30]) to 0.0. [Use names for these things appropriate to your language and...
  4. Quoting the thread title: "How to generate...

    Quoting the thread title:
    "How to generate random number without repetition?"
    I do not believe there is a way directly. What I would do is either:
    fill the data structure with all possible...
Results 1 to 4 of 4