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 - welcome to the blog Software Gadget the end of this much calm product information launcing, yes every day there are always products that are removed from various brands, both physical hardware products and software that need new knowledge to use it, well now we will discuss first about Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements as you search we have collected a lot of data to make this information as complete as possible for you, please read:

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



    so much information Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements

    hopefully the information Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements that we provide can be useful for you in the set of technology products that fit your daily needs,

    have just read the article titled Tcl and OTcl Tutorial For NS2 -Loops and Conditional Statements if you feel useful information and you want to bookmark or share please use the link https://ramblingsofker.blogspot.com/2012/12/tcl-and-otcl-tutorial-for-ns2-loops-and.html and do not forget to go back to this blog if you want to know information about the latest 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