免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: lyreopera
打印 上一主题 下一主题

[翻译]《The New C》——几篇介绍C99特性的文章 2010年4月30日更新 [复制链接]

论坛徽章:
0
41 [报告]
发表于 2010-05-01 22:49 |只看该作者
谢谢了。我是从FORTRAN转过来的。正要多看看这些。

论坛徽章:
2
程序设计版块每日发帖之星
日期:2015-06-17 22:20:00每日论坛发贴之星
日期:2015-06-17 22:20:00
42 [报告]
发表于 2010-05-01 23:21 |只看该作者
The C99 That Isn't
The remainder of this article will briefly list the different features that are in C99.
文章的余下部分将简要的立决C++中的不同特性。

论坛徽章:
0
43 [报告]
发表于 2010-05-01 23:28 |只看该作者
这些文章有很多瑕疵,我是有很大责任的

因为是作为精读来翻译的,写完之后我自己都没看过一遍

论坛徽章:
0
44 [报告]
发表于 2010-05-02 19:06 |只看该作者
学习,真的很感谢lz的无私奉献~~

论坛徽章:
2
程序设计版块每日发帖之星
日期:2015-06-17 22:20:00每日论坛发贴之星
日期:2015-06-17 22:20:00
45 [报告]
发表于 2010-05-03 20:17 |只看该作者
The New C: It All Began with FORTRAN
Example 4: SUBROUTINE G(X, Y)
……
// Translation using "by reference"
// “传值”的翻译

疑似笔误

论坛徽章:
2
程序设计版块每日发帖之星
日期:2015-06-17 22:20:00每日论坛发贴之星
日期:2015-06-17 22:20:00
46 [报告]
发表于 2010-05-03 23:58 |只看该作者
The New C: It All Began with FORTRAN
In FORTRAN, unlike C, if a function assigns a new value to a parameter, the value of the actual argument passed to the function will change, and after the function returns, the caller will see the new value of the argument. Consider the FORTRAN code in Example 1 below. If you call F passing a variable Y as an argument, after F returns, Y will equal 6.


这里的parameter指的就是形参,argument指的就是实参。可能译的明确一些为好

论坛徽章:
2
程序设计版块每日发帖之星
日期:2015-06-17 22:20:00每日论坛发贴之星
日期:2015-06-17 22:20:00
47 [报告]
发表于 2010-05-04 10:26 |只看该作者
The New C: It All Began with FORTRAN
While "copy in/copy out" parameter passing adds overhead to entering and returning from a function, if the parameter is referenced just a few times, and the (expensive on some machines) indirection is eliminated, the net result is increased performance (on some machines).

语气上似乎应该是:“尽管"copy in/copy out"……,但只要……,由于……之故,the net result is increased performance”

论坛徽章:
1
黑曼巴
日期:2020-02-27 22:54:26
48 [报告]
发表于 2010-05-04 11:13 |只看该作者
看的很过瘾,收藏!

论坛徽章:
0
49 [报告]
发表于 2010-05-04 15:20 |只看该作者
翻译的不错

论坛徽章:
0
50 [报告]
发表于 2010-05-04 17:37 |只看该作者
The New C: It All Began with FORTRAN


这里的parameter指的就是形参,argument指的就是实参。可能译的 ...
pmerofc 发表于 2010-05-03 23:58



    是的,刚开始我没有弄明白parmeter、argument之间的关系,都翻译成了参数。最后的几篇文章注意到了这个问题,就分开翻译了。但是前面的内容却没有改过来。


在新公司的第一天,发的第一个贴:)
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP