我将创建一个字典程序,我应该使用C#或C ++,C#是否可以像C ++一样快速,否则会使我的字典变慢 [英] I'm going to create a dictionary program what should I use C# or C++, can C# be fast like C++ or it will slow my dictionary down

查看:103
本文介绍了我将创建一个字典程序,我应该使用C#或C ++,C#是否可以像C ++一样快速,否则会使我的字典变慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要为英语创建一个字典程序,我非常了解C#并且对C ++有很好的了解,我想问一下,C#是否可以像C ++一样快速发展,我想要一个足够的开始编写程序的答案,因为我更喜欢在Visual Studio IDE中使用C#编写,但是如果这会影响我的程序速度,我将使用C ++和QT框架编写.

I''m going to create a dictionary program for English and and I know C# very well and have a good knowledge of C++, and I want to ask, can C# be very fast like C++ or not, I want a sufficient answer to start writing my program, because I prefer to write in C# within visual studio IDE but if this will affect on my program speed, I will write in C++ and QT framework

推荐答案

好吧,鉴于您要使用它的原因,C#会更容易,因为它实际上具有易于实现的Dictionary类,而C ++却没有.此外,除非您实际上正在处理内存中的大量数据(例如图像),否则与C ++相比,C#在速度上是无法区分的.基本上,对于您的应用程序,它应该一样快,并且编写起来要容易得多:)

希望这会有所帮助,

Ed:)
Well, given what you want to use it for, C# will be easier as it actually has an easy-to-implement Dictionary class where as C++ doesn''t. Furthermore, unless you''re actually handling large amounts of data in memory (e.g. images) C# is indistinguishable for speed compared to C++. Basically, for your application it should be just as fast and much much easy to code :)

Hope this helps,

Ed :)


C#实现甚至可能比C ++实现更快.但这一切都取决于实现它的方式和方式,没有比这更快,更慢的东西了.

那就是说,我建议您将使用C#视为对性能的影响很小,然后选择使用C#,因为与将C#与C ++相比提供的易开发性相比,对性能的影响不大.
A C# implementation might even be faster than a C++ implementation. But it all comes down what and how you implement it, there is no this is faster this is slower.

That said I suggest you look at using C# as a small performance hit, and then choose to use C# because that performance hit is nothing when you compared to the ease of development C# offers over C++


这篇关于我将创建一个字典程序,我应该使用C#或C ++,C#是否可以像C ++一样快速,否则会使我的字典变慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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