C ++建议

编程入门 行业动态 更新时间:2024-10-07 12:29:20
本文介绍了C ++建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

你好! 我是这个论坛的新手,需要一些建议。 我已经学习了java的基础知识我在学校学习 计算机科学。我宁愿学习C ++。 你可以创建Windows应用程序,游戏,Linux应用程序,它可以更快地获得,更强大等等。 And你在Windows中编译时得到一个很好的.exe文件。 (哪个java 缺乏) 我已经开始阅读一本C ++书了,我已经中途了, 但是当谈到GUI应用程序时,我有一些问题需要清楚。 据我所知,C ++没有提供GUI库。但后来我们有了Windows API和Visualc ++的。所以我的问题是。 Windows API和VisualC ++他们似乎没有使用相同的 库? Windows API现在太旧了,无法使用吗? 我知道在VisualC ++中你可以复制并粘贴设计 模式来获取按钮但是在WinAPI中代码行。 另一个问题是许多C ++书籍甚至没有提到GUI。 甚至不知道是否有关于它的书。 是否有更多的图书馆需要注意? 另一方面,C ++是一个老的图书馆。语言与java相比,C#,VB但是 它仍然是最强大的(我的意见)。 提前谢谢

Hello! I?m new to this forum and in need of some advice. I have learned the basics of java in the school as I?m studying computer science. I would rather learn C++ though. You can create windows applications, games, Linux applications, its faster, more power etc. And you get a nice .exe file when you compile in windows. (Which java lacks) I have already started to read an C++ book and I?m half way through, but when it comes to GUI applications I have some questions I would like to clear out. As I understand it C++ doesn?t provide a GUI library. But then we have Windows API and Visualc++. So my questions are. Windows API and VisualC++ they don''t seem to be using the same library? Windows API is it too old to be using today? I know that in VisualC++ you can just copy and paste in the design mode to get a button but in WinAPI its lines of code. And another problem is that many C++ books don''t even mention the GUI. Don''t even know if there are books about it. Are there more libraries that one should be aware of? In other hand C++ is an "old" language compared to java, C#, VB but it?s still is the most powerful one (my opinion). Thanks in advance

推荐答案

11月18日,2:53 * pm,Allonii< allo ... @ hotmailwrote: On Nov 18, 2:53*pm, Allonii <allo...@hotmailwrote: 您好! 我是这个论坛的新手,需要一些建议。 我已经学会了基础知识作为我在学校的Java学习 计算机科学。我宁愿学习C ++。 你可以创建Windows应用程序,游戏,Linux应用程序,它可以更快地获得,更强大等等。 And你在Windows中编译时得到一个很好的.exe文件。 (哪个java 缺乏) 我已经开始阅读一本C ++书了,我已经中途了, 但是当谈到GUI应用程序时,我有一些问题需要清楚。 据我所知,C ++没有提供GUI库。 Hello! I?m new to this forum and in need of some advice. I have learned the basics of java in the school as I?m studying computer science. I would rather learn C++ though. You can create windows applications, games, Linux applications, its faster, more power etc. And you get a nice .exe file when you compile in windows. (Which java lacks) I have already started to read an C++ book and I?m half way through, but when it comes to GUI applications I have some questions I would like to clear out. As I understand it C++ doesn?t provide a GUI library.

是的,该语言不提供GUI库。

Yes, the language doesn?t provide a GUI library.

但是我们有 Windows API和Visualc ++。所以我的问题是。 But then we have Windows API and Visualc++. So my questions are.

请转到comp.os.ms-windows.programmer.win32或者像这样。

Please go to the comp.os.ms-windows.programmer.win32 or like this.

Windows API和VisualC ++他们似乎没有使用相同的 库? Windows API现在太旧了,无法使用? Windows API and VisualC++ they don''t seem to be using the same library? Windows API is it too old to be using today?

错误。这取决于你的任务。

False. It depends on your task.

我知道在VisualC ++中你可以复制并粘贴设计 模式来获取按钮但是在WinAPI中它的代码行。 另一个问题是许多C ++书籍甚至没有提到GUI。 I know that in VisualC++ you can just copy and paste in the design mode to get a button but in WinAPI its lines of code. And another problem is that many C++ books don''t even mention the GUI.

可能你需要关于GUI编程的书(据我所知,对于 Windows)没有关于C ++的书。

Probably you need book about GUI programming (as I understand, for Windows) not book about C++.

另一方面,C ++是一个旧的。语言与java相比,C#,VB但是 它仍然是最强大的(我的意见)。 In other hand C++ is an "old" language compared to java, C#, VB but it?s still is the most powerful one (my opinion).

嗯。什么意思强大?同样,这取决于您的需求。有时 它很强大。有时候没有。

Hmmm. What''s mean powerful? Again, it depends on your needs. Sometime it is powerfull. Sometimes not.

Allonii< al ***** @ hotmailwrote: Allonii <al*****@hotmailwrote: > Windows API和VisualC ++他们似乎没有使用相同的库? Windows API现在太旧了,无法使用吗?我知道在VisualC ++中你只需复制并粘贴设计模式即可获得一个按钮,但在WinAPI中它的代码行。 >Windows API and VisualC++ they don''t seem to be using the samelibrary? Windows API is it too old to be using today?I know that in VisualC++ you can just copy and paste in the designmode to get a button but in WinAPI its lines of code.

Visual C ++是Microsoft的C ++语言实现。 Windows API包含Windows内置的功能,您需要* b $ b *用于编写Windows应用程序。您可能正在使用MFC(Microsoft基础类)编写代码 ,这是一组包含许多API函数并生成 更容易编写Windows应用程序。 提出有关编写Windows应用程序的问题的正确位置是 microsoft.public.vc。 *等级。 - Tim Slattery Sl ******** @ bls.gov members.cox/slatteryt

您好, Allonii写道: Hello, Allonii wrote: 据我所知,C ++没有提供GUI库。但后来我们有了Windows API和Visualc ++的。所以我的问题是。 As I understand it C++ doesn?t provide a GUI library. But then we have Windows API and Visualc++. So my questions are.

如果你没有特殊的理由去使用Windows API,我会告诉你b $ b建议你学习一些ClassLibrary,更容易使用。 例如Qt( http:// trolltech/products/appdev )或Gtk。 我使用Qt多年,有时在Windows下开发, 有时在Linux下,有时用于Mac。 我不在乎。 Qt做到了这一切。 示例: int main(int nArgCount,char ** ppSzArgs) { QApplication app(nArgCount,ppszArgs); QPushButton按钮(按我); connect(& button,SIGNAL(clicked()), & app,SLOT(退出())); 返回app.exec(); } 这将创建一个按钮,完成事件循环,文本,可点击。 如果你点击它,它会向应用程序发送一条消息 将结束队列... 所有平台的相同源代码。 建设? - qmake - 制作 完成。 只是一个建议。 Andreas

If you do not have a special reason to go for the Windows API, I''d suggest that you learn some ClassLibrary, which is easier to use. For example Qt ( trolltech/products/appdev ) or Gtk. I am using Qt since years, sometimes developing under Windows, sometimes under Linux, sometimes for the Mac. I do not care. Qt does it all. Example: int main(int nArgCount, char** ppSzArgs) { QApplication app(nArgCount, ppszArgs); QPushButton button("Press me"); connect(&button, SIGNAL(clicked() ), &app, SLOT(quit() ) ); return app.exec(); } This would create a button, complete with event loop, text, clickable. And if you click it, it will send a message to the application which will end the queue... Same Sourcecode for all platforms. Building ? - qmake - make done. Just a suggestion. Andreas

更多推荐

C ++建议

本文发布于:2023-10-23 02:37:18,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1519493.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:建议

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!