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){
...
Type: Posts; User: Nathan Kent
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){
...
I do believe it means it will take any type?
#ifndef ANY_H
#define ANY_H
typedef void * any;
#endif
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...
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...
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 ){
...
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 ;)...
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?
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 :)
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...