在C ++和C#之间有什么更好的选择 [英] what is better among C++ and C#

查看:67
本文介绍了在C ++和C#之间有什么更好的选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从c ++和c#

推荐答案

应该是什么,这不是我们可以回答的问题-它们不一定用于同一件事.

C#需要.NET框架(或Mono),它不能独立存在.

C ++可以使用.NET框架,但不必这样做.

两者都很强大,都非常灵活.这实际上取决于您打算如何使用它.如果您正在开发WinForms应用程序或WPF应用程序,那么我会选择C#.
如果您正在编写游戏,则使用C ++.
如果您将软件嵌入设备中,则两者都不用-我可能大部分时间都使用C.
That is not a question we can answer - they are not necessarily used for the same thing.

C# requires the .NET framework (or Mono), it cannot stand alone.

C++ can use the .NET framework, but it doesn''t have to.

Both are powerful, both are flexible. It really depends on what you are planning on doing with it. If you are developing WinForms apps, or WPF apps, then I would go for C#.
If you are writing games, then C++.
If you are embedding software in a device, then neither - I''d probably use C instead most of the time.


C ++最适合开发软件库.
因此,如果您要这样做,请使用C ++.
C++ is best for developing software libraries.
So if that is what you want to do, use C++.


这取决于您要开发的内容.您越接近硬件级别,使用非托管c ++就越有意义.如果您想开发更高级别的功能,您可能会更喜欢C#.但是,这些都是语言,您需要使用的库以及需要交付的最终产品将决定什么最适合该项目.如果您是初学者,并且想决定让他们学习的巫婆,建议您从C#开始.它更容易学习.
It depend on what you want to develop. The more closer you need to go to the hardware level, the more sense it makes to use unmanaged c++. If you want to develop higher level functionality, you probably will be happier with C#. But these are both only languages, the libraries you need to use, and the end product you need to deliver will decide what is the best for that project. If you are a beginner and want to decide witch of them to learn, I suggest you begin with C#. It is much easier to learn.


这篇关于在C ++和C#之间有什么更好的选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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