对学习C ++感到困惑 [英] Confused about learning C++

查看:64
本文介绍了对学习C ++感到困惑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,


我在C中有经验(数字项目,如工程问题,

科学应用程序)我也有C ++的基本概念,我有

读取加速C ++直到第7章,但似乎它是b / b
讨论std和你自己语言的另一部分

抽象。最好先阅读一本关于C ++语言的基本概念(但不是C部分)的基础概念更好,它给出了基础知识,好像

读者是初学者一样作为


Prata的C ++ Primer Plus

自由教导自己C ++ 21天......


或您推荐用于第一步阅读的任何其他书籍。我是

a有点困惑如何继续。


提前Thx。


问候。

解决方案

你好,


我建议你在搬到<之前做大量的练习br />
高级主题。

当你做了足够的练习时,你会自然地理解它。


Reagrds。


utab写道:

亲爱的,

我在C中有经验(数值项目,如工程问题,科学应用程序)我也有C ++的基本概念,我已经阅读了加速C ++直到第7章,但似乎它讨论了std和其他使用您自己的抽象语言的一部分语言。最好先阅读一本关于C ++语言(但不是C部分)的基本概念的书,它给出了基础知识,好像
读者是初学者,如
Prata的C ++ Primer Plus
在21天内由Liberty自学C ++ ...

或者您推荐用于第一步阅读的任何其他书籍。我有点困惑如何继续。




我没有书推荐,但是,我建议学习C ++

概念按以下顺序排列:


*标准库:容器,迭代器,算法,流。

*类。

*函数对象。

*异常和流量控制通过throw / catch。

*模板。

*智能指针(例如,tr1 :: shared_ptr<>)

*原始指针和数组。


我没有按顺序执行;而且我觉得,结果,我花了相当一段时间才拿到了简单而直接的解决方案来解决常见的问题。

问题自然而然地来到我身边。

Best


Kai-Uwe Bux




" utab" <微米******** @ gmail.com> skrev i meddelandet

新闻:11 ********************** @ z14g2000cwz.googlegr oups.com ...

亲爱的,

我在C(数值项目,如工程问题,科学应用程序)中有经验我还有C ++的基本概念,我有<读取加速C ++直到第7章,但似乎它用你自己的抽象来讨论std和语言的另一部分。最好先阅读一本关于C ++语言(但不是C部分)的基本概念的书,它提供了基本知识,就好像




本书的重点是标准库*是C ++语言中不可或缺的元素。很明显,你应该学习使用库类,并从

构建你自己的抽象。


你的一部分困惑可能是本书对C ++采用了一种与C语言完全不同的语言

。一个非常好的主意,IMO。

Bo Persson


Dear,

I have experince in C( numerical projects, like engineering problems,
scientific applications) I have the basic notion of C++ also, I have
read Accelerated C++ until Chapter 7, however it seems that it
discusses the std and the other part of the language with your own
abstractions. Is that better to read a book first on the basic concepts
of C++ language (but not the C part) that gives the basics as if the
reader is a beginner such as

C++ Primer Plus by Prata
Teach Yourself C++ in 21 days by Liberty...

or any other book that you would recommend for first step reading. I am
a bit confused how to proceed.

Thx in advance.

Regards.

解决方案

Hi there,

I suggest that you should do plenty of practice before you move to
senior topics.
When you''ve done enough practice, you''ll understand it naturally.

Reagrds.


utab wrote:

Dear,

I have experince in C( numerical projects, like engineering problems,
scientific applications) I have the basic notion of C++ also, I have
read Accelerated C++ until Chapter 7, however it seems that it
discusses the std and the other part of the language with your own
abstractions. Is that better to read a book first on the basic concepts
of C++ language (but not the C part) that gives the basics as if the
reader is a beginner such as

C++ Primer Plus by Prata
Teach Yourself C++ in 21 days by Liberty...

or any other book that you would recommend for first step reading. I am
a bit confused how to proceed.



I have no book recommendations, however, I would suggest to learn C++
concepts in the following order:

* standard library: containers, iterators, algorithms, streams.
* classes.
* function objects.
* exceptions and flow control via throw/catch.
* templates.
* smart pointers (e.g., tr1::shared_ptr<> )
* raw pointers and arrays.

I didn''t do it in that order; and I feel that, as a consequence, it took me
quite some time before simple and straight forward solutions to common
problems came to me naturally.
Best

Kai-Uwe Bux



"utab" <um********@gmail.com> skrev i meddelandet
news:11**********************@z14g2000cwz.googlegr oups.com...

Dear,

I have experince in C( numerical projects, like engineering
problems,
scientific applications) I have the basic notion of C++ also, I have
read Accelerated C++ until Chapter 7, however it seems that it
discusses the std and the other part of the language with your own
abstractions. Is that better to read a book first on the basic
concepts
of C++ language (but not the C part) that gives the basics as if the



The point of this book is that the standard library *is* an integral
part of the C++ language. It is a clear intention that you should
learn to use the library classes, and build your own abstractions from
that.

Part of your confusion might be that this book treats C++ a language
totally different from C. A very good idea, IMO.
Bo Persson


这篇关于对学习C ++感到困惑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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