i have two structures declared as such:
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 i have a line in the .c file:
Code:
struct rtpkt send_neighbor;
send_neighbor.mincost = dt[node].dist[node];
and the error that im getting is (cant assign two different types) not a quote.
What am i doing wrong here?
-thank you