C/C++术语,中英文对照

源程序 source program 通过字符序列创造出来的程序
源文件 source file 保存源程序的文件
诊断信息 diagnostic message 编译,链接或执行时发生的错误信息
注释 comment //单行或者/*多行 */
函数调用 function call
实参 argument
语句 statement
翻译阶段 translation phase
格式化字符串 format string
转换说明 conversion specification %d,%s
换行 new line  \n
字符串常量 string literal "abc"
转义字符 escape sequence

\n,\a

响铃 alert \a

常量

constant 5,5L
变量 variable a,b
声明 declaration int n;
整型 int
初始化 initialize int a=3;
初始值 initializer
运算符 operator
操作数 operand
乘除运算符 multiplicative operator
加减运算符 additive operator
双目运算符 binary operator
单目运算符 unary operator
三目运算符 ternary operator
单目-运算符 unary - operator
单目算术运算符 unary arithmetic operator -a,+a,!a,~a
基本赋值运算符 simple assignment operator

a=3

表达式 expression a+3,b=a+3
赋值表达式 assignment expression b=a+3
表达式语句 expression statement b=a+3;
浮点数 floating-point number
类型 type
对象 object
整型常量 integer constant 5
浮点数常量 floating constant 3.14
类型转换表达式 cast expression (double) (a+b) / 2
类型转换符 cast operator ()
if语句 if statement
  • 2
    点赞
  • 20
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值