首页 > 其他 > 详细

[learncpp.com] 0 1 Introduction to these tutorials 介绍这个教程

时间:2021-09-16 10:34:29      阅读:21      评论:0      收藏:0      [点我收藏+]

仅仅是翻译给自己以及一些有需要的同学看,并不是专业翻译,个人能力有限,勿喷。
如果有好的提议,请私信我!
文章原址:https://www.learncpp.com/cpp-tutorial/introduction-to-these-tutorials/


0 1 Introduction to these tutorials

Welcome! 欢迎!

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++作为一个兴趣爱好还是作为职业发展,你来对地方了!

Lesson structure 课程结构

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.

每一章都有一个主题,所有的部分都是围绕这个主题展开的。没有建议你应该花多久学习完这些课程和章节,只要以适合你的速度完成这些材料即可。

Goals 目标

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, common pitfalls, 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.
  • 涵盖编程主题和C++。传统的书在教编程语言的基本概念方面做的很好,但是他们经常不会涵盖语言相关的编程主题。例如书本会省略关于编程风格、常见的陷阱、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.
  • 提供很多例子。很多人从下面的例子中学习到的东西 相比较他们从阅读文章中学到的一样多,甚至于更多。这些教程将致力于提供大量清晰准确的例子去解释你正在学的概念。你将会避免(尽可能的)这两大拦路虎:the magic hand wave(有点类似数学证明的省略的意思):省略了什么东西;无法解释的新概念:新概念里堆积了很多无法解释他是如何工作的例子(就是一大堆看不懂名词的阐述)。这两种情况都很容易卡住我们的学习。
  • 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.
  • 最重要的:积极乐观。编程是一件有趣的事情,如果你不能从中取乐,你就不能以一个良好的心态去学习编程。疲劳和不开心的程序员会制造错误,debug的时间也会因此比你第一次写程序的时间还要长!通常,你可以直接上床睡觉,然后第二天再来解决问题,这样或许会让问题迎刃而解。

Getting the most out of these tutorials 充分利用这个教程

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 programs mindlessly -- 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 to investigate 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.
  • 当你制造错误和在你的程序里发现了bug,修正它。尝试在寻求帮助前自己解决你的问题。学习如何发现和解决错误是一个很重要的技能。不要忽视学习如何debug(我将会在以后的课程解释)-这是一个关键的工具(解决你程序的问题)。
  • 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:

  • Read through the comments. Other readers may have encountered similar challenges.
  • Scan through the next lesson in the series -- your question may be answered there.
  • Use a search engine to see if your question (or error message) has been addressed elsewhere.
  • Ask your question on a site that is designed for programming Q&A, like Stack Overflow.
    If all else fails, skip the material you don’t understand, and come back to it later. You may find that something that was hard to understand is easier with the additional knowledge and context provided by other articles.

问:我想突破一个概念该怎么做?
如果你无法理解一些东西:

  • 读一读这些评论。其他的阅读者或许跟你有相同的困扰。
  • 稍微看一看同一个系列的其他文章--你的问题的答案或许在那里
  • 使用搜索引擎搜索你的问题的答案
  • 在一些论坛上提问例如stackoverflow
    你如你还是有困扰,跳过你不能理解的部分,以后再回来看。你也许会发现以前难以理解的东西变得十分容易理解(通过自己额外的知识和其他文章提供的信息)

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!