增强C ++知识,我从哪里开始? [英] Improving C++ knowledge, where do i start from?

查看:62
本文介绍了增强C ++知识,我从哪里开始?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

三年多来,我一直在阅读C ++书籍并编写一些代码,但我仍然是一个新手.我真的想在我了解的基础知识上有所改进,并输入一些高级知识.请有人帮我解决这个问题,我对C ++的选项(MFC,Visual C ++,Qt等)感到困惑.我不太了解基础知识之后的下一步,我想开发应用程序.谢谢!!!

I have been reading C++ books and being writing some codes for over 3 years but i''m still a novice. I really want to improve on the basics that i know and enter something advanced. Please can someone help me with this cos i''m confused about the options C++ has (MFC, Visual C++, Qt, etc). I don''t really know the next step after the basics and i want to develop applications.Thanks!!!

推荐答案

您应该能够在三点之后编写应用程序多年的C ++.经过6个月的自学,我开始了我的第一份编程工作,并开始在商业应用程序上工作.但是,如果您想更好地使用C ++,那么MFC是创建Windows应用程序的方法,但是您应该专注于学习诸如STL,iostreams等东西,这些东西是标准C ++的一部分.如果您发现自己不能从书本上学得好,可以考虑参加一门课程.

要澄清

MFC-是Microsoft添加到C ++以支持Windows开发的一组类
Visual C ++根本不是C ++的选项",它是您用来在Windows上编写C ++程序的程序的名称.
Qt只是一个用于编写跨平台窗口代码的库.像所有跨平台的东西一样,它也不是很漂亮.
You should be able to write applications after three years of C++. I took my first programming job and started to work on a commercial app after 6 months of self learning. However, if you want to get better at C++, then MFC is the way to create windows applications, but you should focus on learning things like the STL, iostreams, etc, the libraries that are part of standard C++. If you''re finding that you don''t do well learning from books, consider taking a course instead.

To clarify

MFC - is the set of classes Microsoft adds to C++ to support windows development
Visual C++ is not a C++ ''option'' at all, it''s the name of the program you use to write C++ programs on Windows
Qt is just a library that is used to write cross platform windowed code. Like all cross platform stuff, it''s not pretty.


如果您想编写应用程序",您不仅必须了解一种语言,还必须知道应用程序应该具有的环境"运行,目标应该是您的应用程序.

您引用了许多工具.这些工具中的每一个在设计时都考虑了特定的领域".
您必须决定您的应用程序要做的事,以及它在哪里要做的事.

此时,请查看其字段"更匹配的工具,开始设计应用程序的体系结构(使用铅笔和纸,而不是语言编辑器!如果要使用计算机,请使用图形绘制程序),并且-当您看到所有事物都摆在适当的位置时,就开始分析概念,将它们分解为越来越小的事物,通过相似性将问题归类,以尝试适合您选择的工具所提供的类和方法.
在那一点上开始编码.
If you want to write "applications" you must not only know a language, but the "environment" your application is supposed to run on and the goal your application is supposed do.

You cited a number of tools. Each of those tool was designed with a specific "field" in mind.
You have to decide what your application has to do and where it has to do it.

At that point, peek the tool whose "field" better match, start designing the architecture of your application (use pencil and paper, not a language editor! If you want to use a computer for that, use a diagram painting program) and - when you see all the things go in their own proper place start analyzing the concepts, breaking them, into smaller and smaller ones, group problems by similarities trying to fit the classes and methods the tool you choose gives you.
At that point start coding.


稍微放大Cedric的观点...

开始阅读很多.诸如Scott Myers的"Effective C ++"和Herb Sutter的"Exceptional C ++"之类的书特别好.

开始编写代码.选择一个项目并继续下去.您会弄乱它(并在10年后回顾它,并认为"aaarggh!天真!"),但是它会开始使您习惯于如何在现实生活中使用该语言.使它变得简单(不要立即假设您将能够编写Quake 7或其他任何东西),您会没事的.

干杯,

To amplify Cedric''s points a bit...

Start reading lots. Books like "Effective C++" by Scott Myers and "Exceptional C++" by Herb Sutter are particularly good.

Start writing code. Pick a project and go for it. You''ll mess it up (and look back on it in 10 years and think "aaarggh! How naive!") but it''ll start getting you used to how to use the language in real life. Make it something simple (don''t immediately assume you''ll be able to write Quake 7 or whatever single handed) and you''ll be okay.

Cheers,

Ash


这篇关于增强C ++知识,我从哪里开始?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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