converntion
One convention that we have is to use the names of fruits and vegetables for variables(only in small code frsgments,nout in any real program,of course)。
一个约定我们使用水果和蔬菜的名称作为变量。
converntion 约定 variables 变量 frsaments
char pear[40]; 梨
double peach; 桃子
int mango=13; 芒果
long melon=2001; 甜瓜
This makes it easy to tell what's a C reserved word,and what's a name the programmer supplied.
这使得很容易告诉什么是一个C保留字,什么是有程序员提供的。
reserved word 保留字,关键字
Some people say that you can't compare apples and oranges,but why not-they are both hand-held round edible things that grow on trees.
edible adj 可食用的 n 食品,食物
Once you get used to it,the fruit loops really seem to help.
一旦你习惯使用它,水果圈真的看起来有帮助。
loop vt 使什么成环 n 圈,环
There is one other convention-sometimes we repeat a key point to emphasize it.
emphasize vt 着重,强调
Like a gourmet recipe book,Expert C Programming has a collection of tasty morsels ready for the reader to sample.
gourmet n 美食家 recipe n 食谱 morsels n (食物)少量
Each chapter is divided into related but self-contained sections;it's equally easy to read the book serially from start to finish,or to dip into it at random and review an individual topic at length.
serially adj 连续的 dip into 研究它 at length 最后,详细的
the technical details are sprinkled with many true stories of how C programming works in practice.
technical details 技术细节 in practice 在实践中 事实上
Humor is an important technique for mastering new material,so each chapter ends with a "light relief" section containing an amusing C story or piece of software folklore to give the reader a change of pace.
幽默是一种重要的技术,掌握新材料,所以每一章结尾“轻松”一节包含一个可笑的C故事或软件的民间传说,给读者一个改变习惯。
converntion的更多相关文章
- RoR - Introduction to Active Record
Active Record: ORM ( Object-relational Mapping)Bridges the gap between relational databases , which ...
随机推荐
- Mysql找不到mysql.sock怎么办?
1. #ps -aux|grep mysql 找mysql的进程. #kill mysql进程号 确定全部kill光 2.直接跳第3步,无效再使用第2步 /usr/local/mysql/bin/my ...
- MongoDB学习笔记-游标
理解MongoDB的游标有两种维度:客户端和服务器端.下面将从这两方面来说明. 客户端 find方法返回值是一个游标.可以通过游标来对最终结果进行控制.比如限制结果数量,略过某一部分,根据任意键按任意 ...
- Linq之查询表达式语法详解
1.闲言碎语 由于项目的需要接触到Linq,刚开始有些不适应,好多概念都很模糊.不过经过一段时间的摸索,慢慢地对Linq有了一个更加深入的了解.在此记录一下备忘. 2.查询表达式语法 执行L ...
- R 语言中文乱码问题
R 语言似乎在WINDOWS平台上对中文的支持不是特别好,似乎是3.1.2的一个BUG. 目前我研究出了一个临时解决方案,你可以将代码编写成一个函数,从而在调用的过程中不必如下繁琐: 1. 先将本地语 ...
- 内核中的 likely() 与 unlikely()
内核中的 likely() 与 unlikely() 在 2.6 内核中,随处可以见到 likely() 和 unlikely() 的身影,那么为什么要用它们?它们之间有什么区别? 首先要明确: if ...
- SQL SERVER完整、差异和事务日志备份及还原(脚本和GUI实现) [原创]
一.完整备份.差异备份和事务日志备份的脚本 --完整备份数据库 BACKUP DATABASE Test_Bak TO DISK = 'E:\20150609_75\bak\Test_bak_full ...
- Java通过反射机制修改类中的私有属性的值
首先创建一个类包含一个私有属性: class PrivateField{ private String username = "Jason"; } 通过反射机制修改username ...
- 团队开发——第一篇scrum报告
一.角色介绍 产品负责人(兼项目经理PM):王雪青 scrum master: 陆宇 开发团队:赵建松.张文冬.徐擎天 二.product backlog 1.买家登录后,显示各个小吃摊的信息,主要是 ...
- 【吐血推荐】简要分析unity3d中剪不断理还乱的yield
在学习unity3d的时候很容易看到下面这个例子: void Start () { StartCoroutine(Destroy()); } IEnumerator Destroy(){ yield ...
- vs2012 condition_variable notify_one 崩溃
vs2012项目中用到 condition_variable系统方法,程序运行过程过程中偶尔出现notify_one崩溃, 程序运行的服务器系统版本是windows server 2008 R2 SP ...