C#与C ++相比有多好? [英] How well does C# compare with C++?

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

问题描述

您好,

我对C#有一些疑问,我希望有人可以为我解答.我是编程世界的新手,我不知道该开始学习C#还是C ++.从就业的角度来看,C#似乎是学习语言的很好选择.在我现在工作的地方,与SQL/数据库一起工作的时候,对数据驱动的网站的需求也越来越大.在我学习了C#之后,它似乎是学习的理想语言,因为它似乎主要处理网站和窗口应用程序的开发.另一方面,从业余爱好的角度来看,我一直我对开发向后兼容的Windows/DOS应用程序更感兴趣,而且我个人不太在意将程序与Internet数据库集成.另外,我对.NET框架一无所知,并且听说C ++是一种用于开发快速应用程序(例如PC游戏)的更快的编程语言.因此,在确定我应该学习哪种语言之前,我想得到一些有关此问题的答案:

不考虑C#的Web开发方面,C#和C ++在功能级别?我知道C ++可以创建.DLL和其他OS级别的应用程序,C#可以这样做吗?速度如何?我听说C ++程序的运行速度比C#程序快20%,是这样吗? C#与J#一样快吗? C#可以创建C ++可以创建的相同类型的程序吗?

C#程序可以在较旧的Windows操作系统(例如Windows 98和95)上运行吗?如果是这样,对那些较旧的操作系统使用C#程序有什么要求吗?如果我的C#程序使用DirectX或OpenGL怎么办?

是否需要在使用本地C#应用程序的每台PC上安装.NET框架?还是C#程序包含.exe中独立运行所必需的所有内容?

请让我了解您可能认为很重要的有关C ++/C#的其他信息.感谢您抽出宝贵的时间阅读我的文章,对于这些问题之前几次被问到,我很抱歉-我无法找到答案.

Hello,

I have a few questions about C# I was hoping someone might be able to answer for me. I am new to the world of programming, and I don't know if I should begin learning C# or C++. From a employment standpoint, C# seems to be a very good choice of language to learn. Where I work now, data driven web sites are becoming more in demand, as is work with SQL/databases. After I learned about C#, it seemed like the ideal language to learn since it seems to primarily deal with the development of web sites and window applications.

On the other hand, from a hobby standpoint, I've always been more interested in developing backwards compatible Windows/DOS applications, and I don't personally care too much about integrating programs with Internet databases. Also I don't know anything about the .NET framework, and have heard C++ is a much faster programming language that you would want to use for developing fast applications(Such as PC games). So I have a few questions regarding this I would like to get answered before I decide on which language I should learn:

Not taking the web development aspect of C# into account, how well does C# and C++ compare on the level of functionality? I know C++ is possible of creating .DLLs and other OS level applications, can C# do this too? How about speed? I have heard that C++ programs run about 20% faster then C# programs, is that true? Is C# about as fast as J#? Can C# create the same type of programs C++ can create?

Can C# programs run on older Windows OSes such as Windows 98 and 95? If so, would there be any requirements for those older OSes to use C# programs? What if my C# program used DirectX or OpenGL?

Does the .NET framework need to be installed on every PC that would use a local C# application? Or do C# programs contain everything necessary within the .exe to run independently?

Please let me know anything else about C++/C# that you might think is important. Thank you for taking the time to read my post and I'm sorry if these questions have been asked several times before - I have been unable to find answers to them.

推荐答案

http://blogs.msdn.com/texblog/archive/2005/06/02/424588.aspx


这篇关于C#与C ++相比有多好?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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