Search:

Type: Posts; User: CommonTater

Search: Search took 0.08 seconds.

  1. Replies
    18
    Views
    3,790

    Then you are not fully prepared to write this...

    Then you are not fully prepared to write this program. I don't care what a person's IQ is or how much schooling with a comp-sci major they have, I don't even care if they came up through the school...
  2. Replies
    18
    Views
    3,790

    From your second while loop... Note that you are...

    From your second while loop...
    Note that you are declaring idNum but never intializing it to a value.



    while (e==1)
    {
    int scoreCheck,idNum;
    id[ctr]=idNum;
    ...
  3. Replies
    18
    Views
    3,790

    Uh-huh... I suppose I can can let you off the...

    Uh-huh... I suppose I can can let you off the hook this time ... LOL.
  4. Replies
    18
    Views
    3,790

    Both his and my function would return 0 in that...

    Both his and my function would return 0 in that case.

    :D You aren't by any chance having a medication-free day again, are you?
  5. Replies
    18
    Views
    3,790

    It returns... K if idnm is matched or -1 if it's...

    It returns... K if idnm is matched or -1 if it's not matched after the loop completes.
    I don't see the problem...
  6. Replies
    18
    Views
    3,790

    Try your search function like this.... int...

    Try your search function like this....


    int searchInt(int a[],int ctr,int idnm)
    {
    int k;
    for (k = 0; k < ctr; k++)
    if (a[k] == idnm)
    return k;
    return -1;
Results 1 to 6 of 6