Stephanie News, Dell USB Drivers, Android Devices, Charging, Apple, Nokia Flash File, Samsung Galaxy

Minggu, 16 Desember 2012

Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements

Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements - with the rapid development of today's technology we must enrich our knowledge of gadgets, because every day there are many new gadgets that are made with advantages, in blogs Stephanie News we will meriview many gadgets from various brands ranging from the specification and its price .. Now we will discuss first about Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements please see our explanation to finish:

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



we feel the information Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements that's all.

hopefully the information Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements that we have conveyed can provide benefits for you and all visitors of this blog, if any criticism and suggestions please comment.

you just read Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements if this article is considered useful and you want to bookmark and share it please use the link https://stephaniefulke.blogspot.com/2012/12/tcl-and-otcl-tutorial-for-ns2-loops-and.html and what if you want other information look for another page in this blog.

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