Review All Gadget, Samsung Galaxy Note, Firmware/ Flash File, Auto Forward, Transfer from Note 7 to Computer/Mac, Transfer Data Contacts from HTC to Samsung, Chimera Tool Samsung

Minggu, 16 Desember 2012

Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements

Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements - do you know that every day there are new gadgets that are created, every gadget has its own way to use it, in blogs Review All Gadget we are reviewing gadgets from various brands ranging from spec, price and how to use the feature, now we are discussing iformasi that you are looking for Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements this information we collect from many reliable sources so that complete for you. 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 information we provide with title Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements can provide more benefits for you.

well this information Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements we have finished, if you intend to bookmark or sharenya can use link https://almourasiloun2.blogspot.com/2012/12/tcl-and-otcl-tutorial-for-ns2-loops-and.html.

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