Senin, 20 Agustus 2018

First Tcl 4 compatible battery script for beginners: "Hello World"

First Tcl 4 compatible battery script for beginners: "Hello World" - Dual-SIM phones are incredibly popular outside the UK, but for some reason us Brits are being left out of the dual-SIM party. This is one reason why the Chinese market has become a popular solution for picking up a dual-SIM phone, but there are risks involved. you can muck about with, well we have collected a lot of data from the field directly and from many other blogs so very complete his discussion here about First Tcl 4 compatible battery script for beginners: "Hello World", on this blog we also have to provide the latest automotive information from all the brands associated with the automobile. ok please continue reading:

Hope you all have installed ns2 , now we can go for coding
As the ns2 simulations work on tcl scripts so we should know about tcl
Here some simple steps to write the "hello world" program in tcl

we can write tcl codes in two ways in interactive mode and in batch mode

first we can have look to interactive mode 

1.open the terminal
             type  $ ns
2. a command prompt open
         Create a new simulator object by using the command
                        set ns [ new Simulator ]

This is Usually the first non-comment statement in ns-2 script 
- Initialize the packet format
   - Create a scheduler (default is a calendar scheduler)
   - Create a “null agent”

3.  to print text on screen we use puts command
               $ns at 1 "puts "\Hello World\""
    here we Schedule an event to write at the time 1 
      by this script simulator instance "ns" writes "hello World"
4.  now we have to exit the simulator object
                         $ns at 1.5 "exit"

 5. now we have to run the simulator object,
                      $ns run
this starts ns
           
and this prints hello world

In batch mode  its much simple

open a text editor and write the codes there and save it with .tcl  file extention 

 expamlpe

 hello.tcl :

set ns [new Simulator]
$ns at 1 "puts \"hello world\""
$ns at 1.5 "exit"
$ns run

open the terminal and execute the hello.tcl by
            $ ns hello.tcl
 












Huawei Ascend Y300-0100 Official Update Firmware/Software
https://littlebitjohnny.blogspot.com/2016/03/huawei-ascend-y300-0100-official-update.html
Free Download Adobe Illustrator CC 2016 Full + Crack (32bit, 64bit) !!
https://littlebitjohnny.blogspot.com/2016/05/free-download-adobe-illustrator-cc-2016.html
Gotta catch 'em all without infringing copyright: Pokémon and Freedom of Panorama
https://littlebitjohnny.blogspot.com/2016/07/gotta-catch-all-without-infringing.html
Downloads Huawei stock ROMs / firmware
https://littlebitjohnny.blogspot.com/2016/09/downloads-huawei-stock-roms-firmware.html
Sony X-BO V3+ 4.4.2 Latest Official Firmware Flash File Download
https://littlebitjohnny.blogspot.com/2016/09/sony-x-bo-v3-442-latest-official.html

Tidak ada komentar:

Posting Komentar