Techno Life, Micromax New Version Official Firmware, Winmax official firmware, Nokia Flash File, WhatsApp Messenger, Lenovo, huawei, xiaomi, samsung galaxy

Cari Blog Ini

Diberdayakan oleh Blogger.
Minggu, 16 Desember 2012

Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements

Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements - these days more and more blogs that talk about technology, including blogs Techno Life but we are very experienced in this case because we have been there from a few years ago always present information about techno for you, well now we are about Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements hopefully the information we will convey can answer your question to google, please see:

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 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"
}



information Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements has been discussed

hopefully the meaning of Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements that we write can be useful for you in adding insight about gadgets.

you just finished reading the article titled Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements if you want to bookmark or share your links use the link https://lifeandeating.blogspot.com/2012/12/tcl-and-otcl-tutorial-for-ns2-loops-and.html do not forget to go back to this blog if you want to get the latest information about gadgets.

Tag :
Share on Facebook
Share on Twitter
Share on Google+
Tags :

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

0 komentar:

Posting Komentar