September 4th, 2013, 04:47 PM
Help please "error, request for member ‘out’ in something not a structure or union "
if anyone can help me with this error in the last two lines of the "makeEdgeBetween2Nodes " function:
error is " request for member ‘out’ in something not a structure or union
typedef st_graphNode ;
typedef struct st_edgeList
struct st_edgeList *next;
//struct st_edgeList *previous;
struct st_graphNode *node;
typedef struct st_graphNode
int additional ;
struct st_graphNode *next;
//struct st_graphNode *previous;
void makeEdgeBetween2Nodes(t_graphNode **node1,t_graphNode **node2 , t_edgeList **e)
September 4th, 2013, 05:33 PM
node1 and node2 are pointers to a pointer, but you are using them as if they were points to a struct.
Perhaps you intended to write:
Recycle your old CD's, don't just trash them
If I helped out out, show some love with some reputation, or tip with Bitcoins to 1N645HfYf63UbcvxajLKiSKpYHAq2Zxud
September 4th, 2013, 05:53 PM
yes you are right . the error disappeared ,,,,, thaaanks
can you explain to me how to use pointer to pointer ?. for example in the main function , how could I call the function "makeEdgeBetween2Nodes" .
September 5th, 2013, 12:36 AM
Another cross-poster getting the same answer in several places, thus wasting at least one persons time.