给C程序员的一本好书 [英] Good C++ book for C programmers

查看:111
本文介绍了给C程序员的一本好书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几年前,我在使用Microsoft的DOS C编译器5.1的PC上进行C编程方面有丰富的经验.我想通过使用Visual Studio为Windows环境学习C ++来更新我的编程技能.我正在寻找一本好的书,它假定您已经了解C,而不是一本针对没有经验的新手而从零开始的书.

谁能为C程序员推荐一本好的Visual Studio C ++书?

谢谢!

Years ago I had a lot of experience programming in C on PCs using Microsoft''s C compiler 5.1 for DOS. I would like to update my programming skills by learning C++ for the Windows environment using Visual Studio. I am looking for a good book that assumes you already know C rather than a book that starts from scratch for beginning programmers with no prior experience.

Can anyone recommend a good Visual Studio C++ book for C programmers?

Thanks!

推荐答案

好吧,老实说,您所了解的C越少越好,除基本语法外,几乎所有您在C中所做的事情都应该在C ++中的处理方式有所不同.您应该使用字符串类,而不是指针.您应该使用iostream,而不是文件句柄.所以,我想说,读一本C ++书籍,然后再用C方式做任何事情,尝试找出它在C ++中是否做得更好.

Stroustrup本书是C ++的很好的参考书,如果您了解C,我认为您应该有足够的技术来处理它(这不是傻瓜书)
Well, to be honest, the less C you know the better, b/c apart from basic syntax, nearly everything you did in C, should be done differently in C++. You should use the string class, not a pointer. You should use iostreams, not file handles. So, I would say, read a C++ book, and before you do anything the C way, try to find out if it is done better in C++.

The Stroustrup book is a good reference for C++ and if you know C, I think you''d be technical enough to handle it ( it''s not a dummies book )


了解C并获取Koenig和Moo的"Accelerated C ++"副本.它是为有经验的程序员学习C ++设计的.我之所以忘记C的原因是,直到本书结尾,您都不会看到很多C概念,例如指针和数组,因此了解它们不会使学习变得更容易.

干杯,

Ash
Forget you know C and grab a copy of "Accelerated C++" by Koenig and Moo. It''s designed for experienced programmers learning C++. The reason I said forget about C is that you won''t see a lot of C concepts like pointers and arrays ''til towards the end of the book so knowing about them won''t make learning any easier.

Cheers,

Ash


因为您不是初学者,所以最适合C ++的书是Stroustrup的 C ++编程语言.

现在,在您跳入Visual C ++之前,请先阅读Petzold的 Programming Windows ,该语言旨在为Windows而不是DOS进行Windows编程(我较早时曾习惯于对控制台/DOS应用程序进行编程). b>这将向您介绍Windows编程.这本书是用C语言编写的,但是您必须知道Windows API本身是用C语言编写的.

熟悉Windows编程后,对于Visual C ++(包括Visual Studio IDE和MFC-Win API上的C ++包装库),我建议Mike Blaszczak的专业MFC 或Jeff Prosise的使用MFC编程Windows ,但是我不确定这些软件的最新版本.但是无论如何,MFC并没有更新,因此您需要一本新书. MSDN必须足够.但是,较新的(2003、2008等)IDE可能需要一本薄书.
Because you aren''t a beginner, the best book for C++ is Stroustrup''s The C++ Programming Language.

Now, before you jump into Visual C++, which is intended to program for Windows more than for DOS (I take that earlier you used to program console/DOS applications), have a read of Petzold''s Programming Windows which will introduce you to Windows programming. This book is in C but you must know that Windows API itself is in C.

After you familiarize with Windows programming, for Visual C++ (which includes both the Visual Studio IDE and MFC - the C++ wrapper library over Win API) I would suggest either Mike Blaszczak''s Professional MFC or Jeff Prosise''s Programming Windows with MFC but I am not sure of latest editions of these. But anyway, MFC is not updated SO MUCH that you need a new book; MSDN must suffice. However, the newer (2003, 2008 etc) IDE may need a thin book.


这篇关于给C程序员的一本好书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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