Info Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements - this blog we have built from a few years ago and already very much information about gadgets that we convey and a lot of blog visitors
New Blog Techno News who are satisfied with the information, we will always try to update the latest information for you, first about Info Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements many already we collect data to make this article so you do not miss the news, please see:
Articles :
Info Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements
full Link :
Info Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements
You can also see our article on:
Info 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 Info Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements finished in discussion
hopefully the information we convey about Info Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements can benefit you in getting new knowledge about technology,
you just finished reading the information Info Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements we hope this informmation can answer the question you submit to googlle, if you want to bookmark or share please use link https://moymoycikukecik.blogspot.com/2012/12/info-tcl-and-otcl-tutorial-for-ns2_62.html and do not forget to always visit this blog to get the latest information every day.
Tag :
Tags :
0 komentar:
Posting Komentar