免费注册 查看新帖 |

Chinaunix

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

[其他] 表达式和变量都分不清的人,也可以出书的呀? [复制链接]

论坛徽章:
0
11 [报告]
发表于 2012-09-20 19:50 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
1
丑牛
日期:2013-09-29 19:04:50
12 [报告]
发表于 2012-09-21 00:46 |只看该作者
羡慕嫉妒恨的话也可以自己出本书

论坛徽章:
0
13 [报告]
发表于 2012-09-21 11:52 |只看该作者
lz何必,遇到恶心的人,躲远点就是了,没必要和他计较的

被狗咬一口,非要再咬狗一口么!

劝某些人推广自己的作品,用正规些的手法,用些旁门左道,成不了大气候!

论坛徽章:
0
14 [报告]
发表于 2012-09-21 12:29 |只看该作者
Raising assault is far more easier than preparing defence.
--------- SonicLing


字数字数

论坛徽章:
0
15 [报告]
发表于 2012-09-21 13:13 |只看该作者
Expression (computer science)
Expression (computer science)
From Wikipedia, the free encyclopedia
  (Redirected from Expression (programming))
An expression in a programming language is a combination of explicit values, constants, variables, operators, and functions that are interpreted according to the particular rules of precedence and of association for a particular programming language, which computes and then produces (returns, in a stateful environment) another value. This process, like for mathematical expressions, is called evaluation. The value can be of various types, such as numerical, string, and logical.
For example, 2+3 is an arithmetic and programming expression which evaluates to 5. A variable is an expression because it denotes a value in memory, so y+6 is an expression. An example of a relational expression is 4≠4, which evaluates to false.[1][2]
In C and most C-derived languages, a call to a function with a void return type is a valid expression, of type void.[3] Values of type void cannot be used, so the value of such an expression is always thrown away.
A function, and hence an expression containing a function, may have side effects. An expression with side effects does not normally have the property of referential transparency. In many languages (e.g. C++), expressions may be ended with a semicolon ( to turn the expression into an expression statement. This asks the implementation to evaluate the expression for its side-effects only, and disregard the result of the expression.


wiki上也是这么说的,不知道C的标准文档怎么说的。

论坛徽章:
0
16 [报告]
发表于 2012-09-21 17:01 |只看该作者
本帖最后由 变异老鼠 于 2012-09-21 17:03 编辑

只贴图,不说话。

论坛徽章:
0
17 [报告]
发表于 2012-09-21 20:05 |只看该作者
变异老鼠 发表于 2012-09-21 17:01
只贴图,不说话。



你连pmerofc的水平都不如,他好歹知道identifier不是variable。

论坛徽章:
0
18 [报告]
发表于 2012-09-21 21:56 |只看该作者
难道variable不是identifier吗?variable是identifier的子集,identifier是表达式,那么variable也是表达式啊


论坛徽章:
0
19 [报告]
发表于 2012-09-21 23:26 |只看该作者
一刀。 发表于 2012-09-21 21:56
难道variable不是identifier吗?variable是identifier的子集,identifier是表达式,那么variable也是表达式 ...



关于这点,你倒是可以参照一下pmerocf的回复:http://bbs.chinaunix.net/forum.p ... mp;fromuid=13000889

在identifier和variable的关系上,他还是有概念的。

论坛徽章:
5
狮子座
日期:2013-08-20 10:12:24午马
日期:2013-11-23 18:04:102015年辞旧岁徽章
日期:2015-03-03 16:54:152015亚冠之德黑兰石油
日期:2015-06-29 18:11:1115-16赛季CBA联赛之新疆
日期:2024-02-21 10:00:53
20 [报告]
发表于 2012-09-22 02:12 |只看该作者
可是变量的确是表达式啊

连变量都搞不清楚的人,哎~

变量分左值右值,都是可以用在表达式里面的。别忘了赋值也是表达式。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP