This blog displays information about the latest android smartphone, price and specs as well as information applikaksi game that appeals to you, here are also a lot of software that you can download

Minggu, 16 Desember 2012

Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements

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 is
set i 0
while {$i < 10} {
    set n($i) [new Node]
    incr i
}

If statements

If statements are very simple
if {$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 : , , , , , , , , , ,
Share on Facebook
Share on Twitter
Share on Google+

Related : Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements

0 komentar:

Posting Komentar