Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements - technological developments continue to grow rapidly, old technologist replaced with the latest, on the blog
Tecno Mobile Phones we will discuss various updated technology from various brands around the world, well now we will discuss first about Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements we collect a lot data from various reliable sources to make this article, please read:
Articles :
Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements
full Link :
Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements
You can also see our article on:
Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements
For loops
For loops are very useful in ns and can be used in conjunction with arrays to easily create larger network topologies. To generate 100 nodes, the following code can be used:for {set i 0}{$i < 100}{incr i} {
set n($i) [$ns node]
}
While loops
These are very similar to for loops. The syntax isset i 0
while {$i < 10} {
set n($i) [new Node]
incr i
}
If statements
If statements are very simpleif {$i < 10} {
puts "i is less than 10"
}
if {$var2 == "Tcl Variable 2"} {
puts "var2 = Tcl Variable 2"
}
just so much information about Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements
hopefully Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements information can provide benefits for you in adding insight about the latest gadget technology
you just read the article about Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements and can you bookmark or share with link https://ghchjgv.blogspot.com/2012/12/tcl-and-otcl-tutorial-for-ns2-loops-and.html so thank you.
Tag :
Tags :
0 komentar:
Post a Comment