适用于 XP、Vista 和 7 的应用程序
我正在考虑为我的论文编写一个在 XP、Vista 和 7 上运行的应用程序。您认为 C# 还是 C++ 是最好的语言?抱歉,我是编程新手,需要一些专家意见。
提前致谢。
I'm looking at writing an application for my dissertation that runs on XP, Vista and 7. Would you say C# or C++ is the best language? Sorry I'm new to programming and wanted some expert opinion.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
两条准则:
如果您需要某些功能(主要)仅在 Windows 上运行,则使用 C#(甚至 Visual Basic .NET);如果您不关心应用程序是否需要一些时间才能运行,请使用 C#(甚至 Visual Basic .NET)。启动或结束比其本地对应物慢几纳秒。如果您是编程新手,您可能会发现 Visual Basic .NET 比 C# 更像英语,并且没有真正的理由选择其中之一:它们最终都是相同类型的可执行文件,具有相同的功能功率和性能。 (此外,使用 C# 进行调试也更容易,因此请尝试一下。)
如果您需要更快的速度/功能,特别是如果您需要确保它是您的,请使用本机语言(例如 C 或 C++) /em> 正在执行的代码,而不是它的某些翻译版本。如果您是编程新手,这将会让人不知所措(更不用说耗时且令人困惑),所以我强烈不推荐它。
不过,如果您不介意其他选择,也可以看看 Java——它在某些方面与 C# 类似,但它的设计在其他方面更简单,并且与平台无关。
Two guidelines:
Use C# (or even Visual Basic .NET) if you need something to work (mainly) only on Windows and if you don't care if your application takes a little while to start up or ends up being a few nanoseconds slower than its native counterpart. If you're new to programming, you might find Visual Basic .NET to be a lot more like English than C#, and there's no real reason to choose one over the other: they both end up being the same kind of executable with the same power and performance. (Furthermore, debugging is also easier with C#, so try that.)
Use a native language (like C or C++) if you need more speed/power, especially if you need to be sure that it's your code that's executing, not some translated version of it. If you're new to programming, this will be overwhelming (not to mention time-consuming and confusing), so I highly don't recommend it.
If you don't mind another option, though, also take a look at Java -- it's similar to C# in some ways but it's designed to be simpler in other ways, and also to be platform-independent.
我认为您想问的问题是“C# 和 C++ 有什么区别?”因为对于哪个更好的问题没有明确的答案。
至于编写在这三种操作系统上运行的应用程序,两种语言都可以很好地工作。因为你是编程初学者,所以我会使用 C#,因为它更容易学习。
I think the question you want to ask is 'What is the difference between C# and C++?' because there is no clear cut answer for the question of which is better.
As for writing an application to work on those three operating systems, both languages work well. Because you are a beginner in programming, I would use C# just because it is much easier to learn.
C# 在 .NET Framework 之上运行,这将消除您的一些错误,特别是如果您是编程新手。生成和输出应用程序也更加容易。所有这些都是有代价的,C++ 更快、更复杂,并且需要经验才能构建有用或引人注目的东西。
C# runs on top of the .NET Framework, which will clean up some of your mistakes especially if your new to programming. It's also easier to produce and output of your application. All that of a cost, C++ is much more faster more complex and requires experience before you can build something useful or high profile looking.