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?

...全文
188 13 打赏 收藏 转发到动态 举报
写回复
用AI写文章
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?

64,644

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

试试用AI创作助手写篇文章吧