推荐用于学习c ++语言的书籍 [英] Recommended books for learning the c++ language

查看:98
本文介绍了推荐用于学习c ++语言的书籍的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问候,



首先,我不确定这是否是提出这个问题的正确位置,但我会给它一个无论如何。



我也不确定我研究得不够,但我无法找到我所寻找的东西。



现在回答我的问题:



接下来的几个月'我不上班也不在学校,所以我想我想学习一些编程 - 必须把时间花在某事上。我对.lua和.XML有一个非常基本的了解,但是我真的想学习C ++



我为Microsoft Visual Studio 2010付了代价,这是否合适编辑使用?我相信我可以在不使用IDE的情况下完成所有编码工作?如果我像任何其他编辑器一样创建一个空项目和代码?



现在如果以上是正确的,我想知道哪些书被认为是最好的对于一个初学者,我阅读了大量的网站都说不同的书籍来学习。我买了这本书--C ++ Primer Plus第6版,我肯定会帮助我在某些时候学习这门语言,但我的问题是:这是一本正确的书,或者你可以先推荐其他书吗?



问候,

fRodzet

Greetings,

First of all, i''m not sure to whether this is the right place to ask this question but i''ll give it a go anyways.

Neither am i sure if i researched enough, however i was not able to find what i seeked.

Now to my question:

For the next few month''s i''m not on work neither am i in school, therefore i thought i wanted to learn some programming - must spend my time on something. I have a very basic knowledgement to .lua and .XML, however i would really like to learn C++

I payed for Microsoft Visual Studio 2010, would this be an appropriate editor to use? I believe i could do all the coding without using the IDE? If i create an empty project and code like in any other Editor?

Now if the above is correct, i''d like to know which books is considered "the best" for a beginner, i read tons of sites all saying different books to learn from. I bought the book - C++ Primer Plus 6th edition which i''m sure will help me learning the language at some point but my question goes to: Is that the right book to begin with, or is there other books you can recommend first?

Regards,
fRodzet

推荐答案

我支付了对于Microsoft Visual Studio 2010,这是一个合适的编辑器吗?

是的 - 它会正常工作。



我相信我可以在不使用IDE的情况下完成所有编码吗?

你可以,但这会破坏购买和安装VS的目的 - 它会帮助你做很多很多方面的工作。



就书本而言,我会说出我常说的话:用你的母语买一本书,标题中没有XX天或假人的多个惊叹号。然后一直阅读,做练习。你会没事的。
"I payed for Microsoft Visual Studio 2010, would this be an appropriate editor to use?"
Yes - it will work fine.

"I believe i could do all the coding without using the IDE?"
You could, but that defeats the purpose of buying and installing VS - it will help you do the work in many, many ways.

As far as books go, I''ll say what I always say: buy a book in your native language, that doesn''t have multiple exclamations marks, "in XX days", or "for dummies" in the title. Then read it all the way through, doing the exercises. You''ll be fine.


除了我完全同意的OriginalGriff给出的有价值的提示之外,你可能想看看这个CodeProject文章中的列表:< br $> b $ b

有用的参考书 [< a href =http://www.codeproject.com/Articles/617/Useful-Reference-Bookstarget =_ blanktitle =New Window> ^ ]
In addition to the valuable tips given by OriginalGriff, which I fully agree to, you might want to take a look at the list in this CodeProject article:

Useful Reference Books[^]


我肯定会推荐使用Visual Studio的另一个工具是VAssistX。它的商业化,但它的自动完成功能优于Visual Studio内置智能感知功能,而VAssistX文本着色功能也在踢它。有一个跳转到definiotion功能,可以帮助您跳转到任何变量/类/任何事物的声明与Alt + G(热键可以自定义),并且标题和C ++文件之间的Alt + O更改,如果名称文件是一样的。 Alt + left_arrow和Alt + right_arrow在跳转位置之间切换。



Visual Studio的一个非常好的免费mcirosoft插件是Productivity PowerTools,我只使用扩展滚动条从它和它的简单高超。带有上述插件的Visual Studio是我见过的最好的C ++编辑器,也许MacOSX上的另一个好的IDE是XCode,但VS仍然更好。 XCode附带了很棒的分析工具,其中大部分也可用于iOS。



C ++:首先阅读2-3本好书。我会首先推荐一本较轻的书,其中包含许多有趣的例子,这些例子展示了一些C ++特性的实用性。通过这个网站:http://www.learncpp.com/这是一个非常有条理的好教程。

然后阅读更多干燥但精确的书籍,如果你想要解释c ++的所有微小细节成为一个有以下书籍的大师:http://www.amazon.com/The-Programming-Language-3rd-Edition/dp/0201889544



注意C ++是如此复杂,以至于非常优秀的程序员不知道许多陷阱和规则(例如,为特定函数调用匹配重载函数的规则 - 不可能记住所有愚蠢的复杂规则,甚至更简单的操作符优先级,所以很容易)。使用所有C ++功能使您成为一个可怕的程序员(但您必须知道了解其他人的代码的功能)。尝试解决许多现实生活中的例子,并学习使用面向对象的设计和一个很好的C ++子集来编写易于学习的好代码。它不是C ++(或任何其他语言)的知识,而是一个优秀的程序员。
Another tool I would definitely recommend with Visual Studio is VAssistX. Its commercial but its auto completion feature is superior to that of the Visual Studio builtin intellisense, and the VAssistX text coloring feature is also kicking ass. There is a "Jump to definiotion" feature that helps you to jump to the declaration of any variable/class/anything with Alt+G (hotkey can be customized), and Alt+O changes between the header and C++ file if the name of the files is the same. Alt+left_arrow and Alt+right_arrow to switch between jump locations.

A very good and free mcirosoft plugin for visual studio is the Productivity PowerTools, I use only the extended scrollbar from it and its simply superb. Visual Studio with the above plugins is the best editor for C++ I''ve ever seen, maybe another good IDE on MacOSX is the XCode but VS is still better. XCode ships with great profiling tools, most of which are usable with iOS as well.

C++: First read 2-3 good books. I would recommend a lighter book for first that contains lots of "interesting" examples that show the usefulness of some C++ features. Run through this site: http://www.learncpp.com/ Its a very well organized nice tutorial.
Then read some more dry but precise books that explain all tiny details of c++ if you want to be a master with books like: http://www.amazon.com/The-Programming-Language-3rd-Edition/dp/0201889544

Note that C++ is so complex that very good programmers don''t know many of the pitfalls and rules (for example matching rules of overloaded functions for a specific function call - impossible to memorize all the stupid complex rules, even the simpler ones like operator precedences, so take it easy). Using all C++ features makes you an awful programmer (but you have to know the features to understand others'' code). Try to solve a lot of real life examples and learn using object oriented design and a nice subset of C++ to write easy to learn nice code. Its not the knowledge of C++ (or any other language) that makes a good programmer.


这篇关于推荐用于学习c ++语言的书籍的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆