distance vector routing program with comments

Upload: lavanya123

Post on 11-Oct-2015

7 views

Category:

Documents


0 download

TRANSCRIPT

/*Distance Vector Routing Table implementation Program*/

#include

#include

void main()

{ static int s,q,a[20],p[20],x,b[20],c[20],f[20][20],e[20][20],i,j,n,d,max=1000;

char ch;

clrscr();

printf(\n ***************************** \n);

printf(Distance Vector Routing Table implementation );

printf(\n **************************** \n);

printf("Enter the No of Nodes=");

scanf("%d",&n);

printf("\n is there exists a Direct Link, in the graph (0 or 1) from the node to -:\n");

for(i=0;i