亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? tclsyntax.html

?? matlab有限元分析工具,比經較全面的一個手冊,請大家下載呀
?? HTML
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
            "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Synopsis of Tcl syntax</title>
</head>
<body BGCOLOR="#E0FFE0" TEXT="#000000" LINK = "#0080C0" VLINK = "#004060" ALINK = "#FF0000" >
<center>
<table>
<tr>
<td>
<a href="qmg2_0_home.html"><img src=logo1.jpg alt="QMG logo"></a></td>
<td>
<h1>
A brief synopsis of Tcl syntax
</h1>
</td>
</table>
</center>

Tcl is an interactive scripting language used to control
QMG.  Tcl is partnered with Tk, a set of functions for
creating windows and GUI's.  QMG 2.0 uses Tcl/Tk version 8.0.
Tcl/Tk is a free software product originally written
by J.&nbsp;Ousterhout and currently written and maintained
by <a href="http://www.scriptics.com">Scriptics, Inc.</a>

<p>
The user of Tcl enters commands after the prompt sign
<strong>%</strong> on the console.
The result of each command is displayed on the console
window.  The format of commands is:
<blockquote>
<strong>
<em>
funcname arg1 ... argn
</em>
</strong>
</blockquote>
In other words a command is separated from its arguments by spaces, and
the arguments are separated from each other by spaces.  The end
of the argument list is signaled by the end of the line.  To continue
a command onto a new line, use a backslash as the last character
of the line.

<p>
Here is an example of a Tcl/Tk command:
<blockquote>
<code>
set a 4
</code>
</blockquote>

This command creates a variable <code>a</code> and sets it to 
<strong>4</strong>.  This could be either the integer 4
or the string 4.
In Tcl, the user does not declare the types of variables, and
there is no type system visible to the user.
Internally, an object may have a certain type.  The type
is always convertible to and from a printable string.

<p>
The name of the
variable (in this case "a") in Tcl can be fairly arbitrary strings,
but you should probably stick to letters, digits, and underscores.
<p>
If an argument itself has a space character in it, then you have
to enclose the argument in quotation marks or curly braces:
<blockquote>
<code>
set a "p 4"
</code>
</blockquote>
or
<blockquote>
<code>
set a {p 4}
</code>
</blockquote>
These commands are completely equivalent.  In both cases, the result
is that <code>a</code> is set to either a string with three characters
or a list with two entries (p and 4).  It is indistinguishable to the
console user whether <code>a</code> is a 3-character string or a
2-entry list, since Tcl internally converts back and forth as needed.

<p>
Note that, unlike other languages,
quotation marks do not differentiate string-literals 
from non-literals.
The two commands <code>set b a</code> and <code>set b "a"</code> have
identical meaning in Tcl/Tk.

<p>
To access the value of a variable, you must precede the name with
a dollar-sign.  Thus, after the commands
<blockquote>
<code>
set a 4<br>
set b $a
</code>
</blockquote>
both a and b are assigned the value 4.  
The set command has the property
that in addition to setting the variable to the value, it also returns
its value, converted to a string, and prints it on your console.

<p>
In QMG, variables are used to stand for meshes and breps.  It is
often not desirable to convert them to string representation
because the string representation can be huge if the mesh or brep
is large. For this reason,
QMG defines a
variant of the "set" command
called <a href="ref.html#gmset"><code>gmset</code></a> 
which suppresses the conversion of the variable to a string
and its subsequent display on your console.

<p>
Another example of a command is the <code>expr</code> command that
causes a string to be evaluated as an arithmetic expression, and the
value of that expression is returned.  For example if you typed
<blockquote>
<code>
set a 4<br>
expr "$a + 19"
</code>
</blockquote>
then the second line would return 23.

<p>
A second syntactic feature of Tcl/Tk is square-brackets.  Square
brackets invoke a function.  Thus,
<blockquote>
<code>
set a 4<br>
set b [expr $a+19]
</code>
</blockquote>
will set b to 23.

A final major syntactic feature is curly-braces.  Curly braces
have several properties: like quotes, they suppress spaces as
separators.  Unlike quotes, they can be nested.
In addition, unlike quotes, they also prevent
square brackets from being evaluated and dollar-sign substitution.


<p>
You need curly braces to denote matrices and vectors to QMG.
Here is an example.  
Suppose you want to set <code>t</code> to be a regular triangle,
and t1 to be a skewed version of that triangle with the matrix
[1,1,0;0,1,0] applied to it (this transformation applies a skew
but no translation).  The command in QMG
to define a regular polygon is 
<a href="ref.html#gmpolygon"><code>gmpolygon</code></a> and to
apply a transformation
<a href="ref.html#gmapply"><code>gmapply</code></a>.  Thus,
you would type:
<blockquote>
<code>
gmset t [gmpolygon 3]<br>
gmset t1 [gmapply {{1 1 0} {0 1 0}} $t]
</code>
</blockquote>
Unforunately, the following will not work:
<blockquote>
<code>
gmset t [gmpolygon 3]<br>
set skewamount 1<br>
gmset t1 [gmapply {{1 $skewamount 0} {0 1 0}} $t]
</code>
</blockquote>
The reason this fails is that (as mentioned above) curly braces
prevent dollar-sign substitution, so this
statement would cause the string literal $skewamount to be passed
to the gmapply routine.  This will result in an error, because
gmapply will be unable to convert its argument
to a numbers.  How do
you get around this problem?  You need to use the <code>list</code>
instruction in Tcl:
<blockquote>
<code>

gmset t [gmpolygon 3]<br>
set skewamount 1<br>
gmset t1 [gmapply [list [list 1 $skewamount 0] [list 0 1 0]] $t]
</code>
</blockquote>
At this point you probably should get
a book to learn more!  There is also information on the web.

<p>
Tcl include procedure and looping constructs to build
arbitrarily complex programs.  In addition, Tk makes it easy to
attach a graphical user interface to Tcl scripts.
QMG uses Tk for several features: the 
<a href="ref.html#gmviz"><code>gmviz</code></a> function
will plot a 2D brep or mesh in a window, and the
<a href="meshgen.html">mesh generator</a> optionally displays
a window indicating its progress.

<hr>
<p>
This documentation is written by 
<a href="http://www.cs.cornell.edu/home/vavasis/vavasis.html">Stephen A. 
Vavasis</a> and is
copyright &#169;1999 by 
<a href="http://www.info.cornell.edu/CUHomePage.html">Cornell 
University</a>.
Permission to reproduce this documentation is granted provided this
notice remains attached.  There is no warranty of any kind on
this software or its documentation.  See the accompanying file
<a href="copyright.html">'copyright'</a>
for a full statement of the copyright.
<p>
<address>
Stephen A. Vavasis, Computer Science Department, Cornell University,
Ithaca, NY 14853, vavasis@cs.cornell.edu
</address>
</body>
</html>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美午夜宅男影院| www.亚洲激情.com| 亚洲成人午夜电影| 亚洲综合色自拍一区| 亚洲综合在线五月| 亚洲成年人影院| 日日噜噜夜夜狠狠视频欧美人 | 亚洲香蕉伊在人在线观| 一个色在线综合| 香蕉加勒比综合久久| 日本中文字幕一区| 国产精品亚洲一区二区三区在线| 韩国一区二区三区| 97久久精品人人爽人人爽蜜臀| av午夜精品一区二区三区| 色丁香久综合在线久综合在线观看| 欧美影院一区二区三区| 日韩亚洲欧美高清| 国产精品五月天| 亚洲精品免费电影| 久久精品国产亚洲a| 顶级嫩模精品视频在线看| 日本久久电影网| 69成人精品免费视频| 久久这里只有精品6| 中文字幕亚洲精品在线观看| 亚洲一区二区在线播放相泽| 蜜臀久久久久久久| 北岛玲一区二区三区四区| 精品视频资源站| 国产女主播视频一区二区| 亚洲国产另类av| 国产91清纯白嫩初高中在线观看| 91福利区一区二区三区| 久久久美女毛片| 亚洲影视在线播放| 成人免费三级在线| 91精品国产综合久久精品性色 | 成人av免费在线播放| 制服丝袜av成人在线看| 国产精品卡一卡二卡三| 奇米色一区二区| 色欧美日韩亚洲| 中文字幕av不卡| 美女在线观看视频一区二区| 在线亚洲高清视频| 国产精品久久国产精麻豆99网站| 麻豆成人免费电影| 欧美日韩一区二区三区免费看| 国产日韩影视精品| 久久精品国产第一区二区三区| 97精品久久久久中文字幕| 久久免费的精品国产v∧| 日韩国产精品91| 欧美日韩在线综合| 亚洲欧洲制服丝袜| 94-欧美-setu| 国产精品日日摸夜夜摸av| 激情五月婷婷综合| 欧美电视剧在线观看完整版| 亚洲国产aⅴ成人精品无吗| 色综合色综合色综合| 国产精品免费看片| a亚洲天堂av| 国产精品久久久久天堂| 成人激情开心网| 国产精品美女久久久久久久久| 国产乱码精品一品二品| 337p粉嫩大胆色噜噜噜噜亚洲| 日本亚洲免费观看| 91精品国产综合久久香蕉的特点| 性做久久久久久| 欧美一区二区大片| 蜜桃视频第一区免费观看| 日韩一区二区在线看片| 久草中文综合在线| 亚洲精品欧美综合四区| 在线免费观看成人短视频| 一区二区三区**美女毛片| 欧美主播一区二区三区美女| 亚洲国产一二三| 欧美一卡二卡三卡四卡| 久久精品国产成人一区二区三区 | 中文字幕不卡在线| 99久久综合国产精品| 亚洲精品日韩综合观看成人91| 91久久久免费一区二区| 日本色综合中文字幕| 欧美mv日韩mv国产网站app| 国产精品影视网| 亚洲视频一二三| 欧美一区二区三区白人| 国产在线精品一区二区不卡了| 国产精品免费aⅴ片在线观看| 99riav久久精品riav| 五月天中文字幕一区二区| 日韩精品一区二区在线观看| 国产成人免费视频网站 | 99久久er热在这里只有精品66| 亚洲女爱视频在线| 欧美男女性生活在线直播观看| 国产综合久久久久影院| 亚洲精品第一国产综合野| 日韩午夜激情av| 91欧美一区二区| 男男视频亚洲欧美| 亚洲少妇中出一区| 日韩一本二本av| 成人精品在线视频观看| 免费av成人在线| 亚洲另类在线制服丝袜| 久久久久久亚洲综合影院红桃| 欧美在线观看你懂的| 国产一区二区伦理片| 亚洲成人综合网站| 国产精品成人免费在线| 欧美成人aa大片| 欧美日韩免费观看一区二区三区| 国产美女在线观看一区| 日韩成人精品视频| 亚洲日本韩国一区| 国产亚洲欧美一区在线观看| 欧美日韩精品一区二区| 91免费精品国自产拍在线不卡 | 欧美国产视频在线| 日韩欧美美女一区二区三区| 91久久免费观看| k8久久久一区二区三区| 国产一区二区三区在线观看免费视频 | 欧美久久久影院| 国产成人精品三级麻豆| 视频一区二区欧美| 亚洲一区二三区| 一区二区三区资源| 国产精品国产自产拍高清av| 精品少妇一区二区三区视频免付费 | 精品日韩99亚洲| 欧美综合色免费| 色伊人久久综合中文字幕| 国产精品一色哟哟哟| 美腿丝袜在线亚洲一区| 图片区小说区区亚洲影院| 一区二区免费在线播放| 亚洲欧美日本韩国| 国产精品第一页第二页第三页| 久久先锋影音av| 国产区在线观看成人精品| 久久无码av三级| 久久久久久久久久美女| 久久精品视频一区二区三区| 亚洲精品在线三区| 久久久亚洲高清| 中文在线一区二区 | 欧美美女视频在线观看| 欧美日韩综合色| 欧美日韩国产电影| 日韩视频在线你懂得| 精品国产免费久久| 国产日产欧美一区二区视频| 国产精品激情偷乱一区二区∴| 亚洲欧洲性图库| 亚洲va在线va天堂| 麻豆国产精品一区二区三区 | 欧美成人性战久久| 久久久电影一区二区三区| 久久久91精品国产一区二区精品| 久久日一线二线三线suv| 欧美韩国日本不卡| 亚洲伊人色欲综合网| 久久精品国产**网站演员| 国产又粗又猛又爽又黄91精品| 成人免费毛片aaaaa**| 一本色道久久综合亚洲aⅴ蜜桃 | 中文字幕欧美区| 亚洲黄色免费网站| 久热成人在线视频| 成人涩涩免费视频| 在线播放/欧美激情| 久久精品夜色噜噜亚洲a∨| 中文字幕日韩一区二区| 亚洲.国产.中文慕字在线| 国模冰冰炮一区二区| 91在线精品一区二区| 欧美一区二区人人喊爽| 中文字幕第一区综合| 天堂va蜜桃一区二区三区| 国模套图日韩精品一区二区| 91福利视频久久久久| 久久综合狠狠综合久久综合88| 亚洲精品免费看| 国产精品一区三区| 欧美日韩一区中文字幕| 国产日韩影视精品| 日本欧美大码aⅴ在线播放| 成人高清在线视频| 精品久久久久久最新网址| 亚洲国产视频一区二区| 99久久精品国产导航| 精品欧美久久久| 午夜精品久久久久久久久|