且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我刚刚开始使用基于Linux OS的C ++进行编程

更新时间:2023-11-12 18:18:52

首先,您应该确定要使用的工具.如果您不想为昂贵的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.