Search:

Type: Posts; User: preeengles

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    35
    Views
    3,814

    Oh, nevermind. I fixed it.

    Oh, nevermind. I fixed it.
  2. Replies
    35
    Views
    3,814

    Uhm...there was a problem with the file...

    Uhm...there was a problem with the file handling...I'm doing it wrong again. See, I edited your code to follow instructions but I messed it up. I'm a failure!:o
    I mixed display and sort :|
    When I...
  3. Replies
    35
    Views
    3,814

    I apologize for what I said (in ref to MK's...

    I apologize for what I said (in ref to MK's post). I said that because it was part of the instructions to merge the two together, or at least that's what I have understood.

    @Adak: *facepalm* God,...
  4. Replies
    35
    Views
    3,814

    Wait a minute, I'm not trying to swap it that...

    Wait a minute, I'm not trying to swap it that way. Look at my code closely. The strcpys were not meant to swap the records. I took one record and stored each of its fields in new variables (ex....
  5. Replies
    35
    Views
    3,814

    Wait a minute, I placed the for loop to count the...

    Wait a minute, I placed the for loop to count the number of records. It will be used for the next for loop. :(



    I think I'll just leave it at that. I'm more concerned with the bug in my code....
  6. Replies
    35
    Views
    3,814

    Well the only reason I'm not using arrays is...

    Well the only reason I'm not using arrays is because my first work would be such a waste if I changed it. Like I said, my first work didn't use arrays and mostly used file handling instead. I don't...
  7. Replies
    35
    Views
    3,814

    This is my array version...It's got no file...

    This is my array version...It's got no file handling in it. The sorting part is found at the display_all function. I've stopped working on this for a while now. But I remember, there was one time it ...
  8. Replies
    35
    Views
    3,814

    I'm just silly. I've made two programs already....

    I'm just silly. I've made two programs already. The first one didn't use arrays so I tried to use this approach. I took two records, stored them in new variables, compared them to see which is...
  9. Replies
    35
    Views
    3,814

    Uhm...this is my lame attempt so far...Somebody...

    Uhm...this is my lame attempt so far...Somebody please give me some pointers as to how to make this work...cuz it's not working.



    for(i=1;i<=tot_rec-1;i++)
    {
    for(j=1;j<=tot_rec-i;j++)...
  10. Replies
    35
    Views
    3,814

    I'm just lost. I'm experimenting with my code...

    I'm just lost. I'm experimenting with my code right now, but no success so far...
  11. Replies
    35
    Views
    3,814

    I haven't learned about linked lists yet and I...

    I haven't learned about linked lists yet and I have to finish this program asap. :(
  12. Replies
    35
    Views
    3,814

    I edited my first post. I placed there a sample...

    I edited my first post. I placed there a sample of my code.

    I wanted to learn merge sort and I think I kinda get the idea of how it works. But I don't know how to implement it in my code.

    By...
  13. Replies
    35
    Views
    3,814

    Alright. I'll try mergesort :) edit: @Adak:...

    Alright. I'll try mergesort :)

    edit:

    @Adak: I'm planning to sort about 10 records. I want them sorted based on student#...
  14. Replies
    35
    Views
    3,814

    Actually, this question is related to the program...

    Actually, this question is related to the program I made before (the one in the the thread 'Something wrong with output'). This time, I want to sort the records....
  15. Replies
    35
    Views
    3,814

    File handling? :|

    File handling? :|
  16. Replies
    35
    Views
    3,814

    I'm not using arrays, by the way...Will using...

    I'm not using arrays, by the way...Will using qsort still be okay?
  17. Replies
    35
    Views
    3,814

    Problem with sorting

    I want to sort the records in a file in ascending order. Is there any predefined function for this? If there's none, can anyone give me a tutorial link, sample code, or an algorithm that would be...
  18. Replies
    35
    Views
    3,950

    Wow, Adak, you're an angel. At first, I got...

    Wow, Adak, you're an angel. At first, I got really nervous cuz the first time I ran your code, it crashed. But ran it again and, YES! It worked! I'm so happy!

    Hmmm...I should learn more about file...
  19. Replies
    35
    Views
    3,950

    quzah's asked me the same thing before (i.e. to...

    quzah's asked me the same thing before (i.e. to post only a small sample)...but I don't even know exactly which part caused the problem.
  20. Replies
    35
    Views
    3,950

    Yeah, the display works fine, and only crashes...

    Yeah, the display works fine, and only crashes when I modify one of the records inputted.



    Well he said he ran the program on Unix...I've never tried Unix before. Would running the program on...
  21. Replies
    35
    Views
    3,950

    *SIGH* I'm getting really ........ed with this...

    *SIGH* I'm getting really ........ed with this already. Just a while ago, the program worked fine. I thought the problem was finally done but when I tried rerunning the program, it crashed again.
    ...
  22. Replies
    35
    Views
    3,950

    @Quzah: I tried that but the only difference it...

    @Quzah: I tried that but the only difference it made was it placed the latest record inputted at the end of the file.

    @Adak: Really sorry if I'm being dumb. I have a feeling I'm doing it wrong....
  23. Replies
    35
    Views
    3,950

    when you tried doing that in your compiler, did...

    when you tried doing that in your compiler, did it work fine? In my case, it didn't. This is what I did in the add_record() (is it correct?):


    void add_record()
    {

    record stud;
    char...
  24. Replies
    35
    Views
    3,950

    Um...may I ask how? I don't quite get what you're...

    Um...may I ask how? I don't quite get what you're referring to. Oh, and thanks for the help again.
  25. Replies
    35
    Views
    3,950

    @Quzah: yeah, I just figured the crash has...

    @Quzah: yeah, I just figured the crash has something to do with the struct. And yeah, maybe I shouldn't have included that menu thingy when I posted my code.

    Now what to do next? It seems Adak's...
Results 1 to 25 of 36
Page 1 of 2 1 2