Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements - In the past, when I started to start blogging, many thoughts disturbed me. I want to have a blog with a nice and interesting look. I am constantly looking for basic tutorials from some web and blogs on the internet. And thankfully, one by one I started to do it, and of course have to go through some confusion process first, but the most important of a blog that is content, yes on the blog
Innaz Review we will discuss a lot of information about gadgets that are very in need by you, now we will discuss first about Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements please refer to the information we will convey until completion:
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"
}
so much information 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 determining the gadgets that fit your needs in daily life.
you just read Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements if you feel this information is useful and want to bookmark or share it please use link https://innaz2.blogspot.com/2012/12/tcl-and-otcl-tutorial-for-ns2-loops-and.html if you want more information please search on other pages this blog.
Tag :
Tags :
0 komentar:
Posting Komentar