Diposting oleh
Anonim
di
22.35
Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements - is looking for information, and in this blog
Android Gadgets we have been providing very complete information from various sources that reliable, well we'll talk about the Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements as you need, please si read to completion.
Articles :
Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements
full Link :
Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements
Article conditional statements,
Article for,
Article loops,
Article network simulator,
Article NS2,
Article otcl,
Article tcl,
Article Tcl script,
Article tutorial,
Article while,
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"
}
Articles Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements has been discussed
A few gadget information Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements, hopefully can provide benefits to you all.
You're reading an article
Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements and this article url is
https://androidtabletgadgets.blogspot.com/2012/12/tcl-and-otcl-tutorial-for-ns2-loops-and.html you can bookmark , Hopefully this article
could be useful and do not forget to always to this blog to find information on gadget.
Tag :
conditional statements,
for,
loops,
network simulator,
NS2,
otcl,
tcl,
Tcl script,
tutorial,
while,
0 komentar:
Posting Komentar