免费注册 查看新帖 |

Chinaunix

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

C深度剖析 [复制链接]

论坛徽章:
0
201 [报告]
发表于 2012-06-21 18:05 |只看该作者
回复 210# kzl0629

我早说过看懂了你的所谓implementation-defined的理由狗屁不通。别人从其它方面反驳也好几个了,你都无视?
为了不鸡同鸭讲我随便问了你几个问题,你都无视?
谁更装X?你要我怎么才能相信你不是故意混淆概念回避你根本就不清楚这个概念只是临时翻了几分钟标准拼凑几段就出来装X?

论坛徽章:
0
202 [报告]
发表于 2012-06-21 18:06 |只看该作者
回复 214# nilgod


    他们也不贴啊,说半天,你查这个,你查那个,装的自己像个高人似的,高人这么半天没说出点实际的,除了乱喷还会啥

论坛徽章:
2
程序设计版块每日发帖之星
日期:2015-06-17 22:20:00每日论坛发贴之星
日期:2015-06-17 22:20:00
203 [报告]
发表于 2012-06-21 18:06 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
204 [报告]
发表于 2012-06-21 18:08 |只看该作者
回复 215# 幻の上帝


    你把正确的说出来啊???到现在你还没有干的,我哪个问题回避了??? 你问我跟这个问题没关的东西,我回答个毛啊,你要认为有关,你把东西说出来啊,不说不就是不会么,那不就是装么

论坛徽章:
2
程序设计版块每日发帖之星
日期:2015-06-17 22:20:00每日论坛发贴之星
日期:2015-06-17 22:20:00
205 [报告]
发表于 2012-06-21 18:08 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
206 [报告]
发表于 2012-06-21 18:09 |只看该作者
回复 216# kzl0629

我本想对付你这等级的货色就可以不用打开pdf,败给你脸皮厚度了。
算了,你要贴我就贴。

ISO C11
Clause 4(N1570)
5 A strictly conforming program shall use only those features of the language and library
specified in this International Standard.3) It shall not produce output dependent on any
unspecified, undefined, or implementation-defined behavior, and shall not exceed any
minimum implementation limit.
6 The two forms of conforming implementation are hosted and freestanding. A conforming
hosted implementation shall accept any strictly conforming program. A conforming
freestanding implementation shall accept any strictly conforming program in which the ∗
use of the features specified in the library clause (clause 7) is confined to the contents of
the standard headers <float.h>, <iso646.h>, <limits.h>, <stdalign.h>,
<stdarg.h>, <stdbool.h>, <stddef.h>, <stdint.h>, and
<stdnoreturn.h>. A conforming implementation may have extensions (including
additional library functions), provided they do not alter the behavior of any strictly
conforming program.4)
7 A conforming program is one that is acceptable to a conforming implementation.5)
8 An implementation shall be accompanied by a document that defines all implementation-defined
and locale-specific characteristics and all extensions.

3) A strictly conforming program can use conditional features (see 6.10.8.3) provided the use is guarded
by an appropriate conditional inclusion preprocessing directive using the related macro. For example:
#ifdef _ _STDC_IEC_559_ _ /* FE_UPWARD defined */
/* ... */
fesetround(FE_UPWARD);
/* ... */
#endif
4) This implies that a conforming implementation reserves no identifiers other than those explicitly
reserved in this International Standard.
5) Strictly conforming programs are intended to be maximally portable among conforming
implementations. Conforming programs may depend upon nonportable features of a conforming
implementation.

吃饭去了。
等你的读后感。别给我说看不懂中心思想。

论坛徽章:
0
207 [报告]
发表于 2012-06-21 18:11 |只看该作者
本帖最后由 hbmhalley 于 2012-06-21 18:12 编辑
kzl0629 发表于 2012-06-21 18:03
回复 211# nilgod
     现在他们不是要跟我掰扯这个问题么,磨磨唧唧的,我知道我的本意不是这个,但是他们非得揪着不放,今天就掰扯呗,看到底最后谁掰扯不过谁


我不知到你是装瞎还是真以为自己是对的。若是后者,我尊重你的观点,并欢迎反驳。要是装傻就是你的不对了
register 变量必须是 能被CPU 寄存器所接受的类型。


C标准根本没有这种限制
如果编译器限制
说明编译器是非标准的

限制哪些register变量放在register里是implementation-defined的,但作者表达的不是这个意思,是“哪些类型的变量可以是register变量”,限制这个的就是不符合标准。有问题么?

论坛徽章:
11
未羊
日期:2013-12-16 12:45:4615-16赛季CBA联赛之青岛
日期:2016-04-11 19:17:4715-16赛季CBA联赛之广夏
日期:2016-04-06 16:34:012015亚冠之卡尔希纳萨夫
日期:2015-11-10 10:04:522015亚冠之大阪钢巴
日期:2015-07-30 18:29:402015亚冠之城南
日期:2015-06-15 17:56:392015亚冠之卡尔希纳萨夫
日期:2015-05-15 15:19:272015亚冠之山东鲁能
日期:2015-05-14 12:38:13金牛座
日期:2014-12-04 15:34:06子鼠
日期:2014-10-16 13:40:4715-16赛季CBA联赛之八一
日期:2016-07-22 09:41:40
208 [报告]
发表于 2012-06-21 18:23 |只看该作者
回复 220# 幻の上帝

1。 被 define typedef 搞晕了
2。 没看到任何复杂逻辑, 要么简单封装, 要么单线流程
3。 看不懂神一样的括号套括号


   

论坛徽章:
0
209 [报告]
发表于 2012-06-21 18:26 |只看该作者
回复 220# 幻の上帝


    你是sb吗? 不懂别乱贴行吗??

   跟implementation-defined 有关就这一句话,越发的觉得你装叉了

5 A strictly conforming program shall use only those features of the language and library
specified in this International Standard.3) It shall not produce output dependent on any
unspecified, undefined, or implementation-defined behavior, and shall not exceed any
minimum implementation limit.


这是定义你如何写程序的,跟编译器的实现有一毛钱关系???

register int a;

这么定义只能说明你程序写的不符合c标准, 你不能说编译器做的不符合标准吧

还有It shall not produce output dependent on

这是 produce output ,会翻译吗?产生输出,输出时不准用implementation-defined

你以为你多牛逼啊,给你文档你也不会看

论坛徽章:
2
程序设计版块每日发帖之星
日期:2015-06-17 22:20:00每日论坛发贴之星
日期:2015-06-17 22:20:00
210 [报告]
发表于 2012-06-21 18:30 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP