Search:

Type: Posts; User: Nathan Kent

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    868

    I have made my own function that iterates through...

    I have made my own function that iterates through the list but instead of printing back the the values I believe its printing the memory address?



    int clist_search(clist *c){
    ...
  2. Replies
    8
    Views
    868

    I do believe it means it will take any type? ...

    I do believe it means it will take any type?

    #ifndef ANY_H
    #define ANY_H


    typedef void * any;


    #endif
  3. Replies
    8
    Views
    868

    Sorry for not going into too much detail, I was...

    Sorry for not going into too much detail, I was on StackOverflow and they didn't like me posting big lines of code.

    I'm very bad at C Programming at the moment but I know this code works because...
  4. Replies
    8
    Views
    868

    This is code created by my university tutor so...

    This is code created by my university tutor so the newline feature wasn't created by me. I could include the whole program but I didn't think someone would go through the effort of compiling the...
  5. Replies
    8
    Views
    868

    [HELP] Circular list find item

    Hello,

    I have a circular list with items added to it and I want to create a function to go through the list to check if an item exists.

    Printing my list function

    void show_int( any d ){
    ...
  6. Replies
    8
    Views
    1,165

    Thank you! I think the issue that was confusing...

    Thank you! I think the issue that was confusing me was the way I laid out my code. I'm used to seeing declaring pointers like this

    pqueue * pq;

    With the space, it's still early days I guess ;)...
  7. Replies
    8
    Views
    1,165

    I figured that would be the reason last night...

    I figured that would be the reason last night it's just the syntax I can't get correct, could you possibly push me in the right direction so I can learn from it?
  8. Replies
    8
    Views
    1,165

    I was silly and realised that after, if you check...

    I was silly and realised that after, if you check my original post i've updated it and now I have a segmentation fault.

    Thanks :)
  9. Replies
    8
    Views
    1,165

    Pointer and If Statement

    Hello,

    I am trying to use an if statement which has a pointer in it to determine which function to use.

    The original code would be -


    pqueue *pq = new_bounded_pqueue(5,le_artist);

    I...
Results 1 to 9 of 9