text(英文单词)
TEXT是Windows程式设计中经常会遇到的一个宏。
基本介绍
- 中文名:text
- 概念:程式设计中经常会遇到的一个宏
- 定义位置:winnt.h
- 特点:增强了移植性
定义位置
winnt.h。
说明
TCHAR*ptch=TEXT("Thisisaconststring.");
如果使用UNICODE字元集, 则TEXT("This is a const string.")相当于L"This is a const string.", 如果使用ASCII集, 则上述字元串相当于“This is a const string.”。这样, 写的程式既可以使用UNICODE, 也可以使用ASCII, 增强了移植性。
在写windows应用程式时, 如果您不确定使用UNICODE还是ASCII好, 那幺推荐您使用TCHAR来替代程式中的char和wchar_t,同时对于字元串常量使用TEXT宏(或_T宏)。
英文单词
n.文本,原文;课文,教科书;主题;版本
vt. 发简讯
例句:
The text is precise and informative.
正文内容準确,信息量大。
The machine can recognise handwritten characters and turn them into printed text
这种机器能够识别手写字型,并将其转化为列印文本。
A spokesman said a text of Dr Runcie's speech had been circulated to all of the bishops.
一位发言人说,朗西博士的演讲稿已经分发给所有主教了。
Her text is believed to be the oldest surviving manuscript by a female physician.
她的文献据信是现存最古老的、由女性内科医生留下的手稿。
I'll read the text aloud first
我先朗读一下课文。
I borrowed my wife's mobile phone last week and a text arrived from another man.
我上周借我老婆的手机用,收到一个男人发来的简讯。
Mary texted me when she got home.
玛丽到家后给我发了条简讯。
His early plays are set texts in universities.
他早期的戏剧作品现在是大学指定课文。
The text fills 231 pages.
正文占了231页。
We have omitted footnotes which we judged inessential to the text.
我们略掉了我们认为对正文不甚紧要的脚注。
转载请注明出处海之美文 » text(英文单词)