跟读练习: C++ in 100 Seconds - 通过视频学习英语口语

正在创建课程...
1
C++, a statically typed compiled programming language famous for its widespread use in software infrastructure and infamous for its steep learning curve.
2
It was created in 1979 by Bjorn Straustrup at AT &T Bell Labs.
3
He was inspired by the object -oriented nature of Simula, but needed a language with the high performance of C, and thus, C with Classes was born.
4
It's designed as a superset of C, which means that virtually any C program is also a valid C++ program, but it also adds zero overhead abstractions,
5
such as object -oriented patterns like polymorphism, encapsulation, and inheritance.
6
Today, it's used in a wide variety of systems with constrained memory demands, like the Unreal Engine for AAA video games, programs like Adobe After Effects that were used to edit this video,
7
databases like MySQL and MongoDB, embedded systems like the display on your smart toaster, and is used to implement much of our low -level infrastructure, like language compilers and virtual machines.
8
It's so popular because it provides low -level memory and hardware control like C, but with high -level abstractions like classes and smart pointers.
9
C++ makes it harder to shoot yourself in the foot, but when you do, it'll blow your whole leg off.
10
To get started, install a C++ compiler like GCC or Clang, then create a file ending in CPP.
11
Include Iostream from the standard library to handle input and output.
12
Your code will start executing from the main function.
13
To print Hello World, we simply use standard character output followed by the bitwise shift left operator and a string literal.
14
We can get rid of this std though by adding a namespace to the top of the file.
15
Now if we want to create a string variable, we can do so by typing it as an array of characters.
16
However, if we include string from the standard library, we can use the string type instead.
17
The real game changer though is the fact that C++ supports object -oriented programming with classes.
18
A class is just a blueprint for an object.
19
Inside a class, you can define attributes and methods that will be private by default, or make them public by adding them under the public specifier.
20
It's also possible to define methods outside the class definition using a double colon.
21
Methods can also be defined multiple times with different parameters, which is known as overloading and is a form of polymorphism.
22
In addition, we can define constructors and destructors to run code when an object is created or destroyed.
23
Classes also support inheritance, allowing developers to more efficiently share logic throughout a program.
24
To instantiate an object, type the class name, followed by the name of your object, and optionally any parameters for the constructor.
25
When it comes to memory, we could manage everything manually with pointers and references.
26
However, tools like Unique Pointer can get the job done in a way that's easier and safer, by ensuring that only one object can be allocated to memory.
27
Now to run your code, open up the terminal, and use a tool like Clang++ to compile it.
28
This has been C++ in 100 seconds.
29
Hit the like button and subscribe if you want to see more short videos like this.
30
Thanks for watching, and I will see you in the next one.

这个视频适合谁?

无论你是刚开始“看视频学英语”的新手,还是想提升“英语口语练习”或“雅思口语练习”水平的学习者,这个视频都超合适!它用简洁的语言讲解C++,语速适中,内容有趣,非常适合用来练听力和跟读。哪怕你对编程一窍不通,也能通过它积累实用表达,快速收获学习成就感。

值得“偷学”的词汇和习语

视频里有不少亮眼表达,赶紧记下来!比如“steep learning curve”(陡峭的学习曲线,指很难学),“shoot yourself in the foot”(搬起石头砸自己的脚,指做蠢事),“blow your whole leg off”(后果严重)。这些习语生动形象,在口语中用上绝对加分!还有“statically typed”(静态类型的)、“polymorphism”(多态性)等专业术语,虽然是编程词汇,但能帮你拓展词汇量,应对各种话题。

如何练好发音?

想通过“shadow speech”(影子跟读)提升口音?跟着视频练这几点!首先,注意单词重音,比如“infrastructure”重音在第二个音节,“polymorphism”重音在第四个音节。其次,模仿连读和弱读,比如“a wide variety of”中“a”弱读成/ə/,“of”弱读成/əv/。最后,关注语调,视频中讲解关键信息时语调会升高,比如提到“zero overhead abstractions”时,语气明显加重。每天用“shadowspeak”法跟读5分钟,不出一周就能感受到进步!

这个视频不仅能让你了解C++,更是“看视频学英语”的好素材。赶紧打开视频,跟着影子跟读,一边学知识一边练口语,轻松实现双赢!

什么是跟读法?

跟读法 (Shadowing) 是一种有科学依据的语言学习技巧,最初开发用于专业口译员的培训,并由多语言者Alexander Arguelles博士普及。这个方法简单而强大:您在听英语母语原声的同时立即大声重复——就像是一个延迟1-2秒紧跟说话者的影子。与被动听力或语法练习不同,跟读法强迫您的大脑和口腔肌肉同时处理并模仿真实的讲话模式。研究表明它能显着提高发音准确性,语调,节奏,连读,听力理解和口语流利度——使其成为雅思口语备考和真实英语交流最有效的方法之一。

影子跟读法: 阅读完整分步指南 →