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 ...
随机推荐
- 【HTML5】炫丽的时钟效果Canvas绘图与动画基础练习
源自慕课网 效果如下: 全部代码: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " ...
- c中static作用
1. static 变量 静态变量的类型 说明符是static. 静态变量当然是属于静态存储方式,但是属于静态存储方式的量不一定就是静态变量. 例如外部变量虽属于静态 存储方式,但不一定是静态变量 ...
- 开发一个App的成本是多少?
英文出处:savvyapps.欢迎加入翻译小组. 在最近的一个会议上,一个叫Bob的老顾客引用了<App Savvy>(<放飞App:移动产品经理实战指南>)中探讨研发一个io ...
- ListBox mvvm 学习笔记
1. ListBox MvvM 例子1. 简单的绑定,ItemsSource 绑定到一个实现了IEnumerable 的类上.一般该绑定都是双向的,所以优先考虑使用 ObservableCollec ...
- layer 弹出子页面然后给父页面赋值
//----赋值 并关闭当前页面 开始---- FunctionActionDeleteXZ = function (CompanyId, RelCompanyName) { parent.$(&qu ...
- RHEL6.4找回root密码的方法
1.先在系统启动的时候提示:press any key to enter menu 时按下e键(其实其他键也可以,只不过我习惯e键而已) 2.进入如下界面: 3.按上下箭头方向键选中第二项,按e键,进 ...
- C++中的链表节点用模板类和用普通类来实现的区别
C++中的链表节点通常情况下类型都是一致的.因此我们可以用模板来实现. #include <iostream> using namespace std; template<typen ...
- Linux安装JBOSS
一.简介 JBoss是一个运行EJB的J2EE应用服务器.它是开放源代码的项目,遵循最新的J2EE规范.从JBoss项目开始至今,它已经从一个EJB容器发展成为一个基于的J2EE的一个web 操作系统 ...
- 点亮led【转载】
http://linux-sunxi.org/Cubieboard/Programming/StatusLEDs Accessing the status LEDs The Cubieboard ha ...
- Kibana4学习<二>
生产环境部署 Kibana4 是是一个完整的 web 应用.使用时,你需要做的只是打开浏览器,然后输入你运行 Kibana 的机器地址然后加上端口号.比如说:localhost:5601 或者 htt ...