Search:

Type: Posts; User: figo2476

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    2,587

    I tries this 2 ways. It is still seg fault. ...

    I tries this 2 ways. It is still seg fault.
    ...........:(
  2. Replies
    3
    Views
    2,587

    malloc, realloc

    Currently, I create a processElement which has resource array & request
    array. These 2 arrays will be expanded in the later stage for storage.

    i.e.
    process = (process_type*) malloc(...
  3. Replies
    1
    Views
    5,291

    how to use fscanf?

    This is my file:
    Process 1 p 3 h 6 3 r 1
    Process 2 p 2 h 1 7 r 3
    Process 3 p 1 h * r 7 9 2

    This is my code tries to read them:


    int id;
    int priority;
  4. Replies
    5
    Views
    6,378

    reply

    I tried this and I found something intresting:

    Here is my code:
    ---------------------


    int main(int argc, char *argv[])
    {

    FILE *inputFp;
  5. Replies
    5
    Views
    6,378

    How can I parse data from a file

    hi:
    Here are some dataset:
    =================
    dog;This is a dog;11
    cat;no cat here;4
    !EMPTY!;blabla;-1
    blablabla

    Here is the function to read data:
    =======================
Results 1 to 5 of 5