我刚刚开始使用基于Linux OS的C ++进行编程 [英] I just begin to program with C++ based on Linux OS

查看:58
本文介绍了我刚刚开始使用基于Linux OS的C ++进行编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我刚刚开始我的C ++编程生涯.作为一个初学者,有时我发现这很困难,因为互联网上有很多资料,我只是不知道如何开始,你们能给我一些吗?咨询,请.

hello,I just start my career on C++ programming.as a beginner,sometimes I find it is difficult because there are so many materials on internet,I just don''t know how to start,could you guys give me some advice,pls.

推荐答案

首先,您应该确定要使用的工具.如果您不想为昂贵的IDE进行大量投资,则可以选择GCC编译器+调试器和一些免费的编辑器,也可以获取免费的IDE,例如MS Visual Studio Express,Eclipse或CodeBlocks(以上建议) ).

然后制作您的第一个"hello world"程序,以确保正确设置环境并了解您的工具链.

第三,尝试一下I/O,并从命令行读取参数.

接下来,如果您对Windows应用程序感兴趣,请尝试使用简单的应用程序,也许是编辑器.您可能可以使用VisualStudio IDE或在网上找到类似的教程.

然后,如果需要,请查看图形":在窗口中绘制线条和图形并不难,最终您将需要该技能.

这是基础.了解所有内容后,您就可以开始选择一个简单的项目.尽早不要尝试使用任何其他组件,例如数据库:如果使用不当,可能会难以区分不正确的使用和实际的C ++错误.
First you should decide on what tools to use. If you don''t want to invest heavily for expensive IDEs, you could get either the GCC compiler + debugger and some free editor of your choice, or get a free IDE such as MS Visual Studio Express, Eclipse, or CodeBlocks (suggested above).

Then make your first ''hello world'' program, just to make sure your environment is set up correctly and you know your tool chain.

Third, experiment a bit with I/O, and reading arguments from the command line.

Next, if you''re interested in Windows applications, try yourself on a simple app, maybe an editor. You can probably find tutorials for something like that with the VisualStudio IDE, or else on the web.

Then, if you want, check out Graphics: drawing lines and figures into a Window isn''t all that hard, and you''ll eventually need that skill.

That''s the basics. Once you know all that you can start a simple project of your choice. Don''t try to use any additional components such as a database early on: if you don''t use them properly, you may have difficulties distinguishing improper use from actual C++ bugs.


最佳建议,找到可以参加的大学,学校或夜校.失败的话,买一些书或从图书馆借书.一个使用C ++和一个使用Linux的应用程序应该可以帮助您入门.
Best advice, find a college, school or evening class that you can join. Failing that, buy some books or borrow them from your library. One on C++ and one on Linux should get you started.


实际上,我们很幸运,网络上有这么多资源(我知道初学者可能对可用资源有些困惑.丰富的信息).我将从对C++ 的扎实了解开始(因此您需要一本好书 ),然后立即开始编程:经验,经验,经验.
Actually we''re lucky there are so many resources on the net (I know the beginner might be a bit confused by the available richness of info). I would start with a solid understanding of C++ (hence you need good books) and immediately starting programming: experience, experience, experience.


这篇关于我刚刚开始使用基于Linux OS的C ++进行编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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