Search:

Type: Posts; User: nynicue

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: algorithms

    by nynicue
    Replies
    4
    Views
    1,251

    Thank you IMalc, I got that. :)

    Thank you IMalc, I got that. :)
  2. Thread: algorithms

    by nynicue
    Replies
    4
    Views
    1,251

    Yes it is a homework, I didn't do coding, just...

    Yes it is a homework, I didn't do coding, just wrote an algorithms.
    You are right I have to try them myself, thank you.
  3. Thread: algorithms

    by nynicue
    Replies
    4
    Views
    1,251

    algorithms

    Hi, can anyone please take a look at these algorithms. Are they correct? Are they going to work?

    Thank you

    Algorithm for the linked list implementation of the following for simple lists.
    ...
  4. Replies
    18
    Views
    3,729

    thank you, and I just understood I also don't...

    thank you, and I just understood I also don't need to malloc hte space for KEYS k, as a head node already passed to the function, I only need to malloc for k->next
  5. Replies
    18
    Views
    3,729

    Thank you. I used fseek() before ftell() THis...

    Thank you. I used fseek() before ftell()

    THis how I changed it , I decided to use do while instead of for loop, but it still not working, it loops though the loop, but I don't see any data that...
  6. Replies
    18
    Views
    3,729

    Thank you , I just checked.....I putted printf's...

    Thank you , I just checked.....I putted printf's after each line to see where program crashes , and it do that on if(ftell(fp)==NULL) line, on this line I was checking to see if the file is emty. ...
  7. Replies
    18
    Views
    3,729

    Thank you for the reply Adak , stdlib.h doesn't...

    Thank you for the reply Adak , stdlib.h doesn't change anything......in the main fn delcared as char fn[CHARS];......I am sorry but can you explain what cast the resolts of malloc() means?
  8. Replies
    18
    Views
    3,729

    load file to structure

    Hello, I am working on function that builds the linked list of nodes, program exits when it comes to the line where file needs to be opened. don't understand why? To the function I am passing...
  9. Replies
    15
    Views
    2,297

    Ooo I got this now, thank you. Can I ask what 'z'...

    Ooo I got this now, thank you. Can I ask what 'z' means in there

    for(cur=head; curr!=NULL; cur = cur->next)z

    Thank you Cooloorful , now I see where problems were .
    It was very helpfull.
    ...
  10. Replies
    15
    Views
    2,297

    I don't really understand. I am using strcmp to...

    I don't really understand. I am using strcmp to compare names in list1[index1] and list2[index2] at index 0 for alphabetical order , assume that list1[] goes first so, index1 now at index 1 and...
  11. Replies
    15
    Views
    2,297

    This is an assignment and we have to read file...

    This is an assignment and we have to read file into char arrays and then put then into linked list and then write them back into the same file, the file looks like



    Ariel, Brooks ...
  12. Replies
    15
    Views
    2,297

    I checked it doesn't return a null pointer.

    I checked it doesn't return a null pointer.
  13. Replies
    15
    Views
    2,297

    OK the problem is in a while loop (post #3) first...

    OK the problem is in a while loop (post #3) first if statements always skips and then it goes to the second if , and I don't understand why. Given to us file already sorted , but we still need to do...
  14. Replies
    15
    Views
    2,297

    Thank you. The problem did not go away yet :( ...

    Thank you.
    The problem did not go away yet :(

    .
  15. Replies
    15
    Views
    2,297

    Sorry, I think the problem is in this loop ...

    Sorry, I think the problem is in this loop



    while(index1<=count||index2<=count)
    {
    curr->next=(Node*)malloc(sizeof(Node)); /*allocate space for next node*/
    curr=curr->next; ...
  16. Replies
    15
    Views
    2,297

    linked list problem

    Hi everyone. I am having a trouble with linked list program. This program will read a file with names and store them in a two lists. Then I need to make a linked list and then write them back to the...
  17. Thread: Seg Fault Help

    by nynicue
    Replies
    11
    Views
    1,796

    Are you sure & needs to be there?

    Are you sure & needs to be there?
  18. you can use %f insetead of your %.2f or %s and...

    you can use %f insetead of your %.2f or %s and then convert it to float. I think it sould work.
  19. and also you can't do that and all...

    and also

    you can't do that

    and


    all those addresses should not be there when you scanf into the strings
  20. Replies
    25
    Views
    6,720

    I have all files copied in the derictories in my...

    I have all files copied in the derictories in my Debug folder, I am using visual Studio C++ 2008


    And what if I am open my master file read an year and open corresponding one of the 12 files to...
  21. Replies
    25
    Views
    6,720

    Almost want.names- master file , contains data...

    Almost
    want.names- master file , contains data for n amount of years,
    1975 year
    156 Smith
    123 Mccarthy and so on , then another year
    This file was created long time ago...
  22. Replies
    25
    Views
    6,720

    dwks, I tried, it did not fix the problem, I...

    dwks, I tried, it did not fix the problem, I think the problem is not in a file name, it somewhere else
  23. Replies
    25
    Views
    6,720

    Forgot to tell, name of files come from commad...

    Forgot to tell, name of files come from commad line.

    that is why I have:

    year=atoi(argv[i]);
    sprintf(fn,"topps.%2d",year); // this name of the file
  24. Replies
    25
    Views
    6,720

    I think I am getting it ( can't check that out...

    I think I am getting it ( can't check that out yet, still can't open files).:



    while(fgets(topps_file, 4, f1)!=NULL)
    {
    while(fgets(wants_file, 4, f2)!=NULL)

    if((str=strcmp(topps_file,...
  25. Replies
    25
    Views
    6,720

    I tought with fgets I would put contents of the...

    I tought with fgets I would put contents of the whole file into something, or I am just lost.





    all files I have in a directory, /want.names have no problem to open, but files taht have to...
Results 1 to 25 of 93
Page 1 of 4 1 2 3 4