Description: C语言路由距离向量路由算法演示程序,采用TC2.0的图形方式编程模式,主要演示路由算法-C language routing Distance Vector routing algorithm demo program using the graphical TC2.0 programming model, the main demonstration of routing algorithm Platform: |
Size: 43008 |
Author:刘军 |
Hits:
Description: C,C++ Questions
1. Base class has some virtual method and derived class has a method with the same name. If we initialize the base class pointer with derived
object,. calling of that virtual method will result in which method being called?
a. Base method
b. Derived method..
Ans. b
2. For the following C program
#define AREA(x)(3.14*x*x)
main()
{float r1=6.25,r2=2.5,a
a=AREA(r1)
printf("\n Area of the circle is f", a)
a=AREA(r2)
printf("\n Area of the circle is f", a)
}
What is the output?
Ans. Area of the circle is 122.656250
Area of the circle is 19.625000
3. What do the following statements indicate. Explain.
• int(*p)[10]
• int*f()
• int(*pf)()
• int*p[10]
Refer to:
-- Kernighan & Ritchie page no. 122
-- Schaum series page no. 323
-C,C++ Questions
1. Base class has some virtual method and derived class has a method with the same name. If we initialize the base class pointer with derived
object,. calling of that virtual method will result in which method being called?
a. Base method
b. Derived method..
Ans. b
2. For the following C program
#define AREA(x)(3.14*x*x)
main()
{float r1=6.25,r2=2.5,a
a=AREA(r1)
printf("\n Area of the circle is f", a)
a=AREA(r2)
printf("\n Area of the circle is f", a)
}
What is the output?
Ans. Area of the circle is 122.656250
Area of the circle is 19.625000
3. What do the following statements indicate. Explain.
• int(*p)[10]
• int*f()
• int(*pf)()
• int*p[10]
Refer to:
-- Kernighan & Ritchie page no. 122
-- Schaum series page no. 323
Platform: |
Size: 21504 |
Author:bhavin |
Hits:
Description: C#实现的TCP文件传输。工程里两个项目,一个是控制端一个是后门。
如果你们寝室共有的路由器~~就可以对这么干。把服务端放在他的机器上后台运行,在backdoor文件夹下,开机自启动。你这边可以随时任意的发送exe过去,那边收到后就会立刻执行。
可以是恶作剧的程序、话说今天偶实验了一下,把室友的电脑桌面换成了凤姐的靓照,蛮好玩的
实现你要先找到他的ip,可以登录路由控制面板看,也可以用一些局域网的扫描工具扫一下。
选择好要运行的文件,Deploy一下那边就执行了。
-C# implementation of TCP file transfers. Two projects in the works, and a control side is a back door.
If your bedroom shared router ~ ~ you can do it. End service running in the background on his machine, boot from the start in the folder of the backdoor. Your side can be arbitrarily send exe in the past, there will receive immediate implementation.
Can be mischievous program, saying that even experiment today, and the roommate s computer desktop replaced Xifeng Videos of pretty fun
Realize that you first have to find his ip, you can log the routing control panel, some LAN scanning tool can also be used to sweep.
Choose a good file to run, the to Deploy look over there on the implementation of. Platform: |
Size: 89088 |
Author:周小虎 |
Hits:
Description: 这是一个模仿路由算法的java程序。
实现关于路由器的简单功能。
实现距离矢量路由算法。
所实现的路由器模拟Internet上的IP路由器。它能确定网络的最短路由,并在这些利用上传输分组
实现功能简介
1) 编写一个称为“Router”的程序
2) 利用距离向量算法更新路由表
3) 该程序的多个实例(进程或线程)可以以运行在一台机器
4) 实例之间利用UDP交换路由表
5) 假设结点与其邻居结点的都为距离为1。
6) 为了指明实例及其邻居,程序启动时必须能接收以下参数:
7) router ID, myport, port1, port2, port3…
8) 程序必须能处理以下命令:
a) N-打印活动的邻居列表。
b) T-输出路由表。
c) 0,1,… 9-发送分组
9) 关于时间定时
a) 每个路由器每2秒钟发出它们的路由表
b) 每个路由器根据收到的路由表更新它们自己的路由表
c) 路由器必须具备检测邻居是否活动的能力。如果路由器在6秒钟没有收到邻居发来的更新,则认为邻居不可达
10) 关于拓扑结构
a) 路由器必须具备路由器故障和恢复的能力
b) 这里假设链路不会出现故障,分组不会丢失和出错
c) 如果路由器在给定时间内未运行,表示路由器故障。如果重启运行,则认为路由器故障恢复
d)当然,假设通信是双向的
-This is a parody routing algorithm java program.
Achieve a simple function on the router.
Implement distance vector routing algorithm.
Internet router simulation achieved the IP router. It can determine the shortest route network, and in these transmission packet utilization
Achieve Features
A) preparation of a group called "Router" program
2) the use of distance vector algorithm updates the routing table
3) multiple instances of the program (processes or threads) can be run on a single machine
4) between instances using UDP exchange routing table
5) Assuming that node and its neighbor nodes are distance of 1.
6) In order to specify the instance and its neighbors, the program must be able to start receiving the following parameters:
7) router ID, myport, port1, port2, port3 ...
8) program must be able to deal with the following command:
a) N-printing activities neighbor list.
b) T-output routing table.
c) 0,1, ... 9- to send the packet
9) About Time Timing
a) given eve Platform: |
Size: 73728 |
Author:张天扬 |
Hits: