Search:

Type: Posts; User: aspand

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Skipping 2 next line when reading in from file?

    Hey guys
    If I am using an ifstream to read in data, and have systematically read data on the first line, How do I skip to the next line at the end of the line?
    Any ideas?
    Thanks.
    Asp
  2. Replies
    4
    Views
    1,640

    Thanks guys..any more responses anyone? A :)

    Thanks guys..any more responses anyone?
    A :)
  3. Replies
    4
    Views
    1,640

    More efficient: BST or Hash search??

    Hi,
    Does anyone know which search is more efficient, the hash table search or the Binary Search Tree search..Respond only if you're confident of your answer. If possible, please also explain....
  4. Replies
    3
    Views
    1,353

    thanks Shiro..it works..

    thanks Shiro..it works..
  5. Replies
    6
    Views
    1,278

    ah..gotcha Monster..though I am still a lil fuzzy...

    ah..gotcha Monster..though I am still a lil fuzzy over the prototype declaration for the same..
    should it be (int)(cmp*)(KEY, KEY)? aren't I just calling one function then?? or would I change it...
  6. Replies
    3
    Views
    1,353

    What is wrong with my while loop?

    Hey guys,
    This is what I want to do..I want to traverse my linked list (thats why I use pWalker) and check and see if the user inputted last name matches that of contacts in the linked list (thats...
  7. Replies
    6
    Views
    1,278

    would my calling statement look like this cos it...

    would my calling statement look like this cos it causes a lot of errors.
    temp = searchList(pList, &pCur, &pPre, k2, (*cmp)(KEY,KEY));
    ??
  8. Replies
    6
    Views
    1,278

    hi Salem, do you wanna explain that a little bit...

    hi Salem,
    do you wanna explain that a little bit more..please?
    A :)
  9. Replies
    6
    Views
    1,278

    How do I do this??

    Hey guys,
    I have a compare function which receives at different times either first name, last name and maybe even both? Initially when wrote my lab it was only for the first name..how do I modify...
  10. Replies
    3
    Views
    7,686

    modifying items in a linked list?

    how do I modify a value in a linked list..lets say I have a name and phone number..how I would modify the phone number??
    Thanks
    A :)
  11. Replies
    12
    Views
    1,388

    Does anyone know how to fix this lab??

    Does anyone know how to fix this lab??
  12. Replies
    12
    Views
    1,388

    I know..but doesn't getDetails return a structure...

    I know..but doesn't getDetails return a structure anyways?? shouldn't that be fine?
    need more..more..more help :D
    A :)
  13. Replies
    12
    Views
    1,388

    sorry..I guess I didn't read it the last two...

    sorry..I guess I didn't read it the last two times you mentioned it..hope you can help now
  14. Replies
    12
    Views
    1,388

    thats what the prof wants. I know the problem...

    thats what the prof wants. I know the problem lies in the createList and SearchList functions esp with passing parameters..could you have a look at that? I know the structure definition is just...
  15. Replies
    12
    Views
    1,388

    cos we're supposed to used two...

    cos we're supposed to used two structures..considered more efficient and good programming..
    my DATA directory is not getting filled with the information I input..can somebody try it and see whats...
  16. I agree with MethodMan..it needs a new...

    I agree with MethodMan..it needs a new section..how and who do we contact to pass the idea on..we could sort the code depending on subject and would serve as a great tool for others..there would have...
  17. Replies
    12
    Views
    1,388

    Need help with code

    Hi,
    I've written this function for a phone directory and it is essential that it is good programming code..but for some reason its not really working..the names are not being stored where they...
  18. Can we upload files for future ref for others?

    Hey guys,
    I think its a great idea if we could upload our own C files which we might write for various classes etc.. to the site. Is there a place on this where we can?? If yes please do let me...
  19. Replies
    4
    Views
    48,398

    How do I compare structures??

    Ppl,
    I am comparing two structures but C says that k>k2 and k==k2 are illegal for struct..how should I do it??
    A :)

    [code]
    int cmp(KEY k, KEY k2)
    {
    int result;

    if(k > k2)
  20. Replies
    3
    Views
    868

    very simple question..I just cant remember

    Is the simple for a long integer %d??
    A :)
  21. I know what next does..I even know that it is a...

    I know what next does..I even know that it is a pointer to struct nodetag..I don't get as to how does it work? What is the logic behind how it works? In fact, what is nodetag??
    There we go..I've...
  22. basic linked list declaration..need explanation

    hey guys,
    Can someone please explain what this does?

    typedef struct nodetag
    {
    DATA directory;
    struct nodetage *next;
    } NODE;

    How does the 'next' bit point to the next item in the list?...
  23. Replies
    5
    Views
    2,795

    Hey DruzTito, This is the link to a msg I posted...

    Hey DruzTito,
    This is the link to a msg I posted asking help about FLUSH..pay close attention to Prelude and esp. Hammer's comments..should be helpful! I am glad the program worked just fine for you...
  24. Thread: rand()

    by aspand
    Replies
    5
    Views
    9,685

    To have your values within a specific range use...

    To have your values within a specific range use this:
    rand() % ((max + 1) - min) + min

    Also, you should have probably used the stdlib library..in this case I've also used the time library since I...
  25. Replies
    5
    Views
    2,795

    Hey man.. no problem..I think I fixed the...

    Hey man..
    no problem..I think I fixed the problem..you had to FLUSH at the end of the loop..the revised code is here now!
    Btw..you had a typo.."availible" should be spelt "available"..I fixed that...
Results 1 to 25 of 63
Page 1 of 3 1 2 3