Hello
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 "
Code:
typedef st_graphNode ;
typedef struct st_edgeList
{
double val;
struct st_edgeList *next;
//struct st_edgeList *previous;
struct st_graphNode *node;
}t_edgeList ;
typedef struct st_graphNode
{
int val;
int additional ;
struct st_graphNode *next;
//struct st_graphNode *previous;
t_edgeList *out;
}t_graphNode;
void makeEdgeBetween2Nodes(t_graphNode **node1,t_graphNode **node2 , t_edgeList **e)
{
inserEdge(&(*node1),&(*e));
inserEdge(node2,e);
((node1)->out)->node=node2;
((node2)->out)->node=node1;
}