a term of c++ primer plus

codelabs 2011-02-21 03:21:41
what is the meaning of "associate with" in computer english. how to translate it to chinese.

i know it aways be refered to as "关联",but in computer english?

...全文
132 点赞 收藏 13
写回复
13 条回复
切换为时间正序
请发表友善的回复…
发表回复
codelabs 2011-02-22
我就是对“关联”这个词不大了解。
回复
Jinhao 2011-02-22
Loops and selection statements are useful tools for file I/O, which closely parallels console I/O. After you declare ifstream and ofstream objects and associate them with files, you can use
these objects in the same manner you use cin and cout.
---
在与输出IO相似的文件IO操作中,循环和选择语句相当有用.在你将一个文件与定义的ifstream/ofstream对象相关联的时候,你可以像cin/cout那样使用这些文件对象.

Other functions take no arguments. For example, one of the C libraries (the one associated with the cstdlib or the stdlib.h header file) has a rand() function that has no arguments and that returns a random integer.
----
另外一些函数不需要参数.例如,C库(定义在cstdlib或者stdlib.h头文件中)中有一个无参数的,用于返回一个随机整数的rand()

The prefix increment, prefix decrement, and dereferencing operators all have the same precedence and associate from right to left.
----
前置自增,前置自减,解引用操作符都有相同的优先级,并且是与右边的操作数关联.

对不?
回复
Jinhao 2011-02-22
[Quote=引用 2 楼 codelabs 的回复:]

for example:
No whitespace around the parentheses associated with a function name

the translation is:.....?
[/Quote]

不要把()两边的空格与函数名关联

对不?
回复
maoxing63570 2011-02-21
何必这么抠呢?你自己觉得怎么翻译好就怎么翻译,其实你这里翻译成关联,在其他的地方就不一定是这个意思
回复
codelabs 2011-02-21
[Quote=引用 7 楼 taodm 的回复:]
楼主还是直接换本翻译得比较好的权威教材的中文版吧。
[/Quote]

我有一本其他的C++教材,我主要是想熟悉下计算机英语。
回复
codelabs 2011-02-21
我随便搜索了这个关键字,居然发现一本书中有几十个。
我随便帖几个意思比较完整的例子出来:
1,
Loops and selection statements are useful tools for file I/O, which closely parallels console I/O. After you declare ifstream and ofstream objects and associate them with files, you can use
these objects in the same manner you use cin and cout.

2,函数定义的说明
Other functions take no arguments. For example, one of the C libraries (the one associated with the cstdlib or the stdlib.h header file) has a rand() function that has no arguments and that returns a random integer.
3,
The prefix increment, prefix decrement, and dereferencing operators all have the same precedence and associate from right to left.
4.
You need to associate a specific ofstream object with a specific file; one way to do so is to use the open() method.
回复
taodm 2011-02-21
楼主还是直接换本翻译得比较好的权威教材的中文版吧。
回复
pathuang68 2011-02-21
楼主给出的context还是太少:(
回复
csdn5211 2011-02-21
计算机英语里associate with也并不是一个特殊的专有词,你还是把上下文给出来吧。
回复
codelabs 2011-02-21
i am aways here until get usefull answer.
回复
pathuang68 2011-02-21
你得把包含associate with的上下文都提出来才行。

没有上下文的话,就看看下面的说法是不是你想要的:
想map这样的容器就是associate容器,也就是所谓的关联容器。其中存放的内容是key-value对,key和value是关联起来的。

像vector这样的容器就不是关联容器了。

希望能对你所有帮助。
回复
codelabs 2011-02-21
for example:
No whitespace around the parentheses associated with a function name

the translation is:.....?
回复
maoxing63570 2011-02-21
how to translate it to chinese.

how to translate it into chinese?
回复
发动态
发帖子
C++ 语言
创建于2007-09-28

5.9w+

社区成员

C++ 语言相关问题讨论,技术干货分享,前沿动态等
申请成为版主
社区公告
暂无公告