C ++的一个大问题 [英] A Big Problem with C++

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

问题描述

亲爱的朋友.

我听说c ++是一种非常强大的语言,但是在使用c ++时我感到非常困惑.
直到现在,我已经阅读了很多有关c ++的笔记,讲座和书籍,并且我实际上拥有大约1年的c ++工作经验.在所有这些资料中,我们都学会了如何使用循环,数组,指针,类,函数,方法和其他c ++概念.但是我还没有找到任何书籍可以为使用c ++构建完整的项目/软件提供指导.我可以在C ++中进行工资核算和其他计算,但是我还不知道如何在C ++中编写硬件级程序.在硬件级别程序中,我的意思是指如何制作格式化分区或驱动器的FORMAT程序,如何制作硬盘扫描程序,如何制作聊天程序或如何制作C ++中的文字处理软件.这些只是一些示例,我不想将我的问题仅限于这些软件示例.我想您已经了解了我的问题.
所以,有可能用c ++制作这样的软件吗?如果可能的话,我们如何制作它们.
是否有任何书籍或指南可供使用c ++进行此类编程,并具有使用c ++进行的完整实践项目.

因此,请解释一下我所说的上下文是C ++所保持的.

注意:我不是在谈论Visual C ++或C#.但是我只在谈论C和C ++.

[/edit]

Dear Friends.

I have heard that c++ is a very powerful language but I have a big confusion while working in C++.
Till Now, I have gone through so many notes, lectures and books of c++ and I have practically about 1 Year experience of working in c++. In all these sources, we are taught how to use loops, arrays, pointers, classes, functions, methods and other c++ concepts. But I have not found any of the books which provide the guidance towards building a complete project / software in c++. I can make a payroll, and other calculations in c++ but I do not know yet that how to make a hardware level program in c++. From Hardware level program, I mean that How to make a FORMAT program that formats a partition or drive, How to make a hard disk scanning program or How to make a chatting program or How to make a Word Processing software in C++. These are just some examples and I do not want to limit my question to only these software examples. I think you have understood my problem.
So, Is it possible to make such kinds of software in c++, If possible then how can we make them.
Is there any book or guidance available for such kind of programming in c++, having complete practical projects in c++.

So, Please explain some one that what is C++ keeping in view, my above mentioned context.

Note: I am not talking about Visual C++ or C#. But I am talking about C and C++ only.

[edit author=''rjm'']removed ''shouty'' attributes.[/edit]

推荐答案

是的,您可以在C ++中完成所有这些操作(或任何其他语言),但需要进行更多的研究.您可以尝试 MSDN [ ^ ]页上有关Microsoft支持的所有API的技术说明.您可以尝试 Google [ ^ ]进行所有技术的常规搜索.并且您可以搜索文章 [
Yes, you can do all these things in C++ (or any other language), but it will involve a lot more study. You can try the MSDN[^] pages for technical notes on all the APIs supported by Microsoft. You can try Google[^] for general searches on all technologies. And you can search the articles[^] here on CodeProject. Then when you get stuck with a problem in any area of your program you can always ask further questions here.


标准C++不提供硬件底层设施,因为它们取决于在目标平台上.您可能已经为此目的查看了OS提供的API.
与其他项目一样,您必须首先了解问题领域,选择解决方案的范围(例如,它应该是多平台的),选择正确的技术(例如,TCP/IP,...),然后使用C++进行操作.实施解决方案.
:)
Standard C++ doesn''t provide hardware low level facilities, as they depend on the target platform. You may have look at OS provided APIs for the purpose.
As about other projects, you have first to understand the problem domain, choose the scope of your solution (e.g. should it be multiplatform ?), select the right technologies (e.g. TCP/IP, ...) and then use C++ to implement the solution.
:)


因为您专门谈论C和C ++,因此没有创建完整应用程序的特定途径.默认的C和C ++是该语言,并且您所阅读的书仅告诉您语言基础知识.选择创建应用程序时,必须选择要创建的内容.例如,您要构建自己的OS,就是从硬件开始,然后逐步升级,直到最终可以在屏幕上绘制某种形式.在为Linux进行构建时,您必须深入研究其文档,而对于Windows,则必须深入MSDN并查找WinAPI文档. WinAPI只是简单的函数,可用于指示OS所需的内容,例如表单和按钮.这不是实际的c或c ++,而只是可以使用的api的实现.因此,您不会在一般的c/c ++书籍中找到这些类似的信息.然后可以选择要使用的工具.当您使用borland cpp builder时,它将为您和IDE处理大多数这些api任务,并让您立即在窗体上拖放控件. Visual Studio也是如此,但是当您仅使用像开源watcom这样的编译器时,您必须包括特定的Windows api标头并自己调用必要的函数,以使用所需的控件设置某些表单,并实现消息循环以检测任何表单动作.建议下载一些示例项目,例如已提供某些链接的Richard.此外,MSDN可以为您提供特定的api指导,但是一些示例使您可以最轻松地进行操作.但是请记住,像winapi这样的api并不是c和/或cpp的一部分,而仅是特定于操作系统的实现.

祝你好运!
Because you are specifically talking about C and C++ there is no specific route to create an complete application. Default C and C++ are the language and the books you have read have told you only the language basics. When you choose to create an application you have to choose what you are building for. Are you going to build your own OS for example, you gave to start out with the hardware and move up until you can finally draw some kind of form on the screen. When building for Linux you have to dive into their documentation and for Windows you dive into MSDN and look for WinAPI documentation. The WinAPI are simply functions that can be used to instruct the OS what you want, for example a form and a button. This is not actual c or c++ but simply an implementation of an api that can be used. It is therefore that you won''t find these kins of info in general c/c++ books. Then there is the choice of the tool you use. When you use borland cpp builder it gives you and IDE that handles most of these api tasks and let''s you drag and drop controls on forms in no time. The same goed for visual studio but when you only use a compiler like opensource watcom you have to include the specific windows api headers and call the nescesary functions yourself to setup certain forms with the controls you want and implement the message loop to detect any form action. It would be advisable to download some example projects like Richard already supplied with some links. Also MSDN can help you with specific api guidance but some examples get you going the most easy way. But remember that those api''s like winapi aren''t part of c and/or cpp but only an OS specific implementation.

Good luck!


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

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