i have two structures declared as such:
And i have a line in the .c file:Code:struct rtpkt { int src; /* source router */ int dst; /* destination router (immediate neighbor) */ int mincost[N]; /* minimun cost to nodes 0, 1, 2, and 3 */ }; struct dt { int dist[N][N]; /* dist[i][j] is the distance to node i via node j */ };
and the error that im getting is (cant assign two different types) not a quote.Code:struct rtpkt send_neighbor; send_neighbor.mincost = dt[node].dist[node];
What am i doing wrong here?
-thank you


