⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 example1a.tcl

📁 无线网络模拟的程序源码
💻 TCL
字号:
#Create a simulator objectset ns [new Simulator]#Open the nam trace fileset nf [open out.nam w]$ns namtrace-all $nf#Define a 'finish' procedureproc finish {} {        global ns nf        $ns flush-trace	#Close the trace file        close $nf	#Execute nam on the trace file        exec nam out.nam &        exit 0}#Create two nodesset n0 [$ns node]set n1 [$ns node]#Create a duplex link between the nodes$ns duplex-link $n0 $n1 1Mb 10ms DropTail#Call the finish procedure after 5 seconds of simulation time$ns at 5.0 "finish"#Run the simulation$ns run

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -