資源簡介
該代碼用C語言實現了最短路由算法,簡單明了。
代碼片段和文件信息
/**********************************************************************??
Programming?assignment?3:?implementing?distributed?asynchronous??
??????????????????????????distance?vector?routing.??????
**********************************************************************/
#include?
#include?????
#include?“prog3.h“????
#include?“node.h“?
???
#define?linkCHANGES?0???//是否有鏈路費用更改標志位??
??????
int?TRACE?=?1;?????????????/*?for?my?debugging?*/???
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////?????
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
struct?distance_table?{int?costs[4][4];}dt0dt1dt2dt3;???
- 上一篇:c語言五子棋
- 下一篇:哈斯圖c語言程序表示
評論
共有 條評論