Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements - we say welcome to the blog
Tecno Android Phones we provide a lot of latest gadget information that must be very dear for you to miss, now we will discuss first about Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements we have collected a lot of information to make this article to complete for you, 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"
}
Articles about Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements finished discussed
We think it is enough information about Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements, hopefully the information we give can give benefit for you,
If you feel the information Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements that we provide can provide benefits for others please share with link https://southernmatron.blogspot.com/2012/12/tcl-and-otcl-tutorial-for-ns2-loops-and.html thank you for visiting our blog page and do not forget to visit other pages.
Tag :
Tags :
0 komentar:
Post a Comment