Description: TCL语言的学习教程和几个程序实例
array.tcl
--- ---
This simple example shows how to create and manipulate arrays.
main commands used: array, puts, foreach, get
calculator.tcl
--------------
This script asks the user to enter an operation ( ex: 24 + 52 ),
analyses the operation, computes it and return the result.
main commands used: proc, expr, return, while, puts, flush, switch, lindex,
gets
file_copy.tcl
-------------
This script asks the user to enter a source file, a destination file and copies
the source file in the destination file.main commands used: puts, gets, read, seek, open, close.-TCL language learning tutorials and examples of several programs array.tcl--------- T his simple example shows how to create and manip ulate arrays. main commands used : array, puts, foreach. get calculator.tcl-------------- This scrip t asks the user to enter an operation (ex : 24 52), analyzes the operation, it computes and return the result. main command s used : proc, expr, return, while, puts, flush, switch, Lindex. gets file_copy.tcl------------- This script asks the user to enter a source file, a destination file and copies the source file in the destination file.main commands used : puts, gets, read, seek, open, close. Platform: |
Size: 434176 |
Author:王力 |
Hits: