Search:

Type: Posts; User: spinner

Search: Search took 0.00 seconds.

  1. Thread: redirection

    by spinner
    Replies
    1
    Views
    1,316

    redirection

    I've been working on this problem all night and it's driving me nuts. Can someone help? Here's what I need to do:

    Put a list of student names, identification numbers, and grades into a file...
  2. Ok, I understand that a little but what I don't...

    Ok, I understand that a little but what I don't get is where to insert
    typedef struct{
    char name[10];
    int age;
    int weight;
    }DATA;

    Should I insert it near typedef struct List{ ?
    Also, am I...
  3. Replies
    9
    Views
    2,840

    Ok, thanks for that, it's helped me out alot! :)

    Ok, thanks for that, it's helped me out alot! :)
  4. Replies
    9
    Views
    2,840

    Well I have this code but I don't think it's...

    Well I have this code but I don't think it's correct:

    #define N 100 /* size of array, and four macros below */
    #define swap(x, y) { int t; t = x; x = y; y = t;}
    #define order(x, y) ...
  5. Replies
    9
    Views
    2,840

    *bangs head on desk* I must be stupid or...

    *bangs head on desk*
    I must be stupid or something, lol!

    I tried a few things (what is commented out):

    #include <stdio.h>
    //#define N 100
    //int A[] = {100};
    //quicksort(list, 0, 99);...
  6. OMG I'm Going Insane (insertion function...help!)

    Ok, I've gone through my notes, books, tutorials, etc. I'm still having a problem with this! Can anyone help me!?!?! Here's what I have to do:

    Write an insertion function that inserts an...
  7. Replies
    9
    Views
    2,840

    still a little confused

    Ok, thanks. That helped a bit but I'm still a little confused. I still need to write quicksort(a, a + 99). Do I just declare an array of size 100 in the number_of_calls function or should I create...
  8. Replies
    9
    Views
    2,840

    quicksort problem

    Hi,

    I have a problem that I'm really stumped on. The problem is this:

    Suppose that a[] is an array of integers of size 100, and that for each i
    a. the element a[i] has value i
    b. the element...
  9. Thread: polynomials

    by spinner
    Replies
    2
    Views
    2,123

    polynomials

    I'm new to C programming and I have an assignment that's really been bugging me. I have to write a function
    double eval(double p[], double x, int n)
    {
    }
    that returns the value of polynomial p...
Results 1 to 9 of 9