繁體中文
琪派听译培训网为客户提供专业的听译培训服务,还提供各类文档,视频的翻译服务

[学员翻译作品] C++ Tutorial (C++教学 中文字幕)

   本站不出售任何教学视频,仅提供翻译服务
翻译成本:¥100元
零售价: ¥0元(支持花呗/信用卡)
教学类别 中文字幕/听译培训学员试译作品/
教学名 [学员翻译作品] C++ Tutorial (C++教学 中文字幕)
信息编号 ST-12
软件版本 (加入CG听译培训课程,免费查看教学产品)
教学时间
如果您有教学或者文档需要翻译,请联系我们的工作人员。
 
[双语人士炼成之路] 听译精讲课 培训教材 15(含教师讲解)
[双语人士炼成之路] 听译精讲课 培训教材 14(含教师讲解)
[双语人士炼成之路] 听译精讲课 培训教材 13(含教师讲解)
[双语人士炼成之路] 听译精讲课 培训教材 12(含教师讲解)
[双语人士炼成之路] 听译/听力/翻译培训教材 与翼同行 分解讲解
   查看更多字幕请按此  
 
    
字幕详细信息介绍
 

CG教学翻译网听译培训学员 杨志明 的听译作品。(指导老师:严红)

杨志明 2016年1月加入听译培训 本作品是 杨志明 第一部试译作品

 
 

C++ is a general purpose multi-paradigm programming language. It is an extension of the C language and as such most C code can easily be made to compile in C++. Some of the major additions to C include object-orientated programming, operator overloading, multiple inheritance and exception handling.

The development of C++ began in 1979, seven years after C first made its appearance. Despite being what many consider legacy languages, C and C++ are still the most widely used languages in the software industry. They are used in creating everything from operating systems and embedded software to desktop applications, games and so on.

Compared with newer languages, C++ applications are often more complex and take longer to develop. In return, C++ gives the programmer a tremendous amount of control in that the language provides both high-level and low-level abstractions from the hardware. It is also designed to give the programmer a lot of freedom by supporting many different programming styles or paradigms, such as procedural, object-oriented or generic programming.

The compiler used in this tutorial is the Microsoft C++ compiler. Some other common ones include Borland, Intel and GNU C++ compilers. Despite C++ being standardized in 1998, these compilers still support slightly different features. Therefore, when something applies specifically to the Microsoft compiler this will be pointed out.

下载地址:链接:http://pan.baidu.com/s/1bE41Qm 密码:wujd

 

 
杨志明 听译文字

原稿

C++中有三种可用的循环结构
there are three looping structures avaliable in C++

你能用它们多次执行一个代码块
All the way you use to execute the code block multiple times.

while循环在条件为真的时候才会执行代码块
the while loop runs through the code block only if the condition is true.

只要条件继续保持为真循环就继续执行。
and will continue looping for as long as the condition remains true

每次循环开始的时候会检查条件。
bear in mind that the condition is only checked the start of each iteration.

do while循环与while循环很像
do while loop works in the same way as the while loop

只是它是在代码执行后检查条件
except that it check the condition after the code block.

所以它至少会执行一次代码块
it will therefore always run through the code block at least once.

留意代码是用分号结束的。
noticed that the loop ends with a semicolon.

for循环是将一段代码执行特定的次数
the for loop is used to run through a code block a specific number of times.

它用到三个参数
it uses three parameters.

第一个初始化计数器大小
the first one initialize size counter.

它会在循环之前执行一次
and it always executed once before the loop

第二个参数包含了循环的条件
the second parameter holds the condition for the loop

会在每次循环之前检查一次
and it check before each iteration.

第三个参数包含了对计数器的执行
the third parameter contains the implement of the counter.

它会在每次循环的末尾执行
and it's executed at the end of each iteration.

for循环有一种变体
the for loop has several variations.

对于初学者来说, 第一个与第三个参数可以分解为几个语句
for starters, the first and third parameters can be split into several statements.

方法就是使用comma符号
by using the comma operator

还有一个方法是不设置任何参数, 让循环无限进行下去
there is also the option of leaving out anyone of the parameters making the loop go on for ever.

对于条件语句if来说
just with the conditional if statement

代码块中如果只有一条语句, 那么就可以去掉括号。
the curly brackets for the loops can be left out if there is only one statement in the code block.

有两个跳转语句让循环继续下去
there are two jump statements can be used inside the loops for it to continue.

break关键字会让循环结构终止。
the break key will ends the loop structure.

continue就跳过当前循环的余下部分, 而从下一个循环的开始部分执行。
and continue escapes the rest of current iteration and continues at the beginning of the next iteration.

第三个或许有用的跳转语句就是goto
the third jump statement mybe useful to know is goto

它可以跳转到特定的标签上
which performs an conditional jump to a specified label.

这个结构几乎没有用到过, 因为它会让程序代码难以跟踪
this instruction is generally never used since it tends to make the flow execution difficult to follow

 

校正后

C++中有三种循环结构
there are three looping structures avaliable in C++ (CG教学翻译网 听译培训学员 杨志明 听译作品)

它们都可以让你循环多次执行一段代码
All of which you use to execute the code block multiple times.

只有当条件为真的时候while循环才会执行代码块
the while loop runs through the code block only if the condition is true.

并且只要条件继续保持为真,那么循环就继续执行。
and will continue looping for as long as the condition remains true

记住只是在每次循环开始的时候检查条件。
bear in mind that the condition is only checked at the start of each iteration.

do while循环与while循环的工作方式很类似
the do while loop works in the same way as the while loop

不过它是在代码块之后检查条件
except that it check the condition after the code block.

因此它至少会执行一次代码块
it will therefore always run through the code block at least once.

注意代码是用分号结束的。
noticed that the loop ends with a semicolon.

for循环是用于将一段代码执行特定的次数
the for loop is used to run through a code block a specific number of times.

它用到三个参数
it uses three parameters.

第一个初始化计数器
the first one initializes the counter. (CG教学翻译网 听译培训学员 杨志明 听译作品)

它总是会在循环之前执行一次
and it always executed once before the loop

第二个参数包含了循环的条件
the second parameter holds the condition for the loop

它会在每次循环之前检查一次
and it's checked before each iteration.

第三个参数包含了计数器的增量信息
the third parameter contains the increment of the counter.

它会在每次循环的末尾执行
and it's executed at the end of each iteration.

for循环有一种变体
the for loop has several variations.

对于初学者来说, 第一个与第三个参数可以分解为几个语句
for starters, the first and third parameters can be split into several statements.

方法就是使用comma符号
by using the comma operator

还有一个方法是不设置任何参数, 让循环无限进行下去
there is also the option of leaving out anyone of the parameters making the loop go on for ever.

对于条件语句if来说
just with the conditional if statement

如果代码块中只有一条语句, 那么可以去掉花括号。
the curly brackets for the loops can be left out if there is only one statement in the code block.

有两个跳转语句让循环继续下去
there are two jump statements can be used inside the loops for it to continue.

break关键字会让循环结构终止。
the break keyword will ends the loop structure.

continue就跳过当前循环的余下部分, 而从下一个循环的开始部分执行。
and continue escapes the rest of current iteration and continues at the beginning of the next iteration.

第三个或许有用的跳转语句就是goto
the third jump statement mybe useful to know is goto (CG教学翻译网 听译培训学员 杨志明 听译作品)

它可以无条件跳转到特定的标签上
which performs unconditional jump to a specified label.

这个结构基本没有用到过, 因为它会让程序代码变得难以理解
this instruction is generally never used since it tends to make the flow execution difficult to follow

 

 
 
 




 
友情链接 : |CG艺术共和国 |空行动画
 
Gnomon字幕
112211
地址: 广东省广州市番禺市广路祈福新村   邮编:511495
客服电话:86-20-34771565  客服QQ:1355398  客服微信(请扫右方二维码)
copyright © 2009-2018 琪派听译培训网
法律声明:本站提供笔译,听译,口译等翻译服务,提供笔译/听译等培训服务
本站对出售的培训教学产品拥有自主知识版权