仅仅是翻译给自己以及一些有需要的同学看,并不是专业翻译,个人能力有限,勿喷。
如果有好的提议,请私信我!
文章原址:https://www.learncpp.com/cpp-tutorial/introduction-to-these-tutorials/
Welcome!
欢迎~
Welcome to the Learn C++ tutorials! Above all else, these tutorials aim to make learning C++ easy.
欢迎学习C++学习指南!首先,这个学习指南旨在帮助你更容易的学习C++。
Unlike many other sites and books, these tutorials don’t assume you have any prior programming experience.
We’ll teach you everything you need to know as you progress, with lots of examples along the way.
不像其他网站和书,这个学习指南不需要你之前有任何编程经验。
我们将会在例子当中教你所需要掌握的知识。
Whether you’re interested in learning C++ as a hobby or for professional development, you’re in the right place!
无论你是把学习C++作为一个兴趣爱好还是作为职业发展,你来对地方了!
The lessons in this introductory chapter are aimed at giving you some context around what C++ is, how it came about, how programs work, and what software you need to install to create your own programs. You’ll even write your own first program.
介绍章节(指第0章)的这一课旨在告诉你一些关于什么是C++,它是怎么来的,程序是怎么样工作的和你编程需要安装的软件。你将会写下你自己的第一个程序
Further chapters will explore different parts of the C++ language. In the first chapter (chapter 1), you’ll get a broad but shallow overview of many fundamental C++ concepts, so we can start writing some simple programs. Further chapters will explore those concepts in depth, or introduce new concepts.
接下来的章节我们会探索C++语言的不同部分。在第一章节里,你会对C++的基本概念有一个全局但是不深入的了解,所以我们可以开始尝试写一些简单的程序。后面的章节我们会更深入的研究这些概念,或者介绍新的概念。
Each chapter has a theme, with all of the sections underneath it being generally related to that theme. There is no suggested amount of time that you should spend with each lesson or chapter; progress through the material at a pace that is comfortable for you.
每一章都有一个主题,所有的部分都是围绕这个主题展开的。没有建议你应该花多久学习完这些课程和章节,只要以适合你的速度完成这些材料即可。
Before we get started, lets hit on a couple of important goals of these tutorials:
在我们开始之前,让我们了解一下这些教程的几个重要的目标
- Cover programming topics as well as C++. Traditional textbooks do a pretty good job of teaching the basics of a given programming language, but they often do not cover relevant programming topics that are incidental to the language. For example, books will
omit
sections on programming style, commonpitfalls
, debugging, good/bad programming practices, and testing. Consequently, by the time you finish the book, you may understand how to program in a language, but you might also have picked up bad habits that will come back to bite you later!One of the goals of these tutorials is to make sure that all of these incidental topics are covered along the way, in the sections where it naturally makes sense to discuss them.
When you finish, you will not only know how to program in C++, you will know how NOT to program in C++, which is arguably as important.
省略
关于编程风格、常见的陷阱
、debug、好的/坏的编程习惯和课后测试。因此,在你读完这本书后,你会理解如何用语言编程,但你你却染上了会让你以后吃亏的坏习惯!这些教程的目标之一是确保所有这些附带的主题都在过程中被涵盖,在讨论它们自然是有意义的部分。
当你完成后,你不会只知道如何用C++编程,你会知道在用C++编程中的一些坑,这毫无疑问是很重要的。
- Provide a lot of examples. Most people learn as much or more from following the examples as they do from reading the text. These tutorials will endeavor to provide plenty of clear, concise examples to show how to apply the concepts you are learning.
We will also avoid (as much as possible) the twin evils: the magic hand wave (also known as …), where in the interest of space part of an example is omitted, and the unexplained new concept, where a new concept that is integral to the example is introduced without any mention of what it is or how it works.
Both of these tend to lead to getting stuck.
- Provide practice programs. The end of many lessons and sections will contain some exercises that you can attempt to answer on your own, along with solutions. You can compare your solution against ours to see what we did differently, or, if you get stuck, how we solved the problem. Then you can go back and refocus on the areas you need more work on.
- Most importantly: have fun. Programming can be a lot of fun, and if you’re not generally having fun, you’re not in the right mindset to be programming. Tired or unhappy programmers make mistakes, and debugging code tends to take much longer than writing it correctly in the first place! Often you can save yourself some time by going to bed, getting a good night’s sleep, and coming back to a problem in the morning.
As you go through these tutorials, we recommend a number of practices to maximize your learning experience:
当你学完这个教程,我们推荐你做一些练习来巩固你的学习成果。
- Type in the examples by hand and compile them yourself. Do not copy and paste them! This will help you learn where you commonly make errors, as well as becoming familiar with compiler warnings and errors. Don’t just
transcribe
the programsmindlessly
-- think about what each of the lines you are typing in does, and how it contributes to the way the program functions. If you encounter anything that doesn’t make sense, or that you don’t understand, that’s something toinvestigate
further.
盲目
的抄写
程序--想清楚你写的每一行是什么含义,他会给这个程序提供什么功能。如果你面对不能理解的东西,这有待进一步研究
。
- As you make mistakes or find bugs in your programs, fix them. Try to solve your own problems before asking others for help. Learning how to find and fix errors is a key skill to successful programming. Don’t neglect learning how to use a debugger (we’ll explain how in a future lesson) -- it’s a key tool in figuring out where your programs are going wrong.
- Experiment with the examples. Change numbers and text to see what happens. Modify the programs to do additional things (e.g. if a program adds two numbers, make it add three numbers). Try to find different ways to break the programs (if a program asks for user input, try a variety of different inputs). You’ll learn more by modifying the examples than by simply following them.
- Plan to spend some time with the quizzes. If you’re new to programming, you may find these challenging (and that’s normal, as your brain
acclimates
to the programming mindset). Don’t be discouraged if you don’t get the right answer the first time. You may need to try several different approaches before you find a path to success. It’s okay to look at the answer if you’re really stuck. Just make sure you understand how the provided answer works before proceeding.
适应
编程思维)。如果你答错了,不要退却。在成功完成挑战前你需要尝试很多方法。如果你真的被卡住了,可以看看答案。在往下看之前要确保你理解了这些答案。
- Write your own short programs using the concepts you have learned. Nothing is better than practice.
Q: How do I
sign up
for the site? How do I get a login?
All parts of this site are accessible anonymously -- therefore, no user account or signup is needed!
问:我如何注册
这个网站?我如何登录?
网站的所有部分都是可以匿名访问的--因此不需要注册!
Q: These tutorials were originally written in 2007. Are they still relevant?
Yes, absolutely.
C++ doesn’t change very often, and when it does, the new content is largely additive. The tutorials have also been updated periodically based on language changes and readers’ feedback.
问:这些教程是2007年写的,现在还适用吗
是的,当然,C++已经不经常做更新了,新的版本只会做一点补充,这个理论还会基于语言更新和读者反馈,实时的在更新。
Q: Is there a PDF version of this site available for offline viewing?
Unfortunately, there is not. The site is able to stay free for everyone because we’re ad-sponsored -- that model simply doesn’t work in PDF format. You are welcome to convert pages from this website into PDF (or any other) format for your own private use, so long as you do not distribute them.
问:这网站有PDF版本吗
很不幸,没有。这个网站对所有人免费是因为我们是有广告赞助的--这个模式不支持PDF形式,你可以通过转换工具将网站转换为PDF格式供你私人阅读,但你不可以传播他们。
Q: What should I do if I get stuck on a concept?
If you don’t understand something:
问:我想突破一个概念该怎么做?
如果你无法理解一些东西:
Q: What do I do if I forget what something means?
Use the Site index. Look up any topics you want to know more about there, and you’ll find links to the lessons where that topic is discussed.
问:如果我忘记了一些东西的含义该怎么办?
使用站点索引。如果你想了解更多的话题,你会发现讨论这个话题的课程的链接。(不断回过头复习)
Q: How do I get an
avatar
for the comment section?
The comment section uses gravatars. You can create one on gravatar.com. Click the “Create your own gravatar” button and sign up. Your gravatar will be connected to your (optionally provided) email address.
问:如何获取评论头像?
评论部分用的头像你可以在 gravatar.com制作,点击制作....
Q: Can you do a dark mode for this site?
Not easily, but you can! See darkreader.org.
问:我可以把网站改为暗色吗?
不太容易,但你可以试试
Finally, one small nag: This site is free because it is ad-supported. If you find yourself enjoying the lessons, please consider disabling your ad blocker.
Alright, let’s get on with it!
最后一个小小的困扰:这个网站是免费的因为他是广告支持的,如果你正沉浸在课程中,请无视这些广告块。
好的,让我们继续!
[learncpp.com] 0 1 Introduction to these tutorials 介绍这个教程
原文:https://www.cnblogs.com/star-air/p/15270234.html