与C#相比,.net C ++有多少支持? [英] How much support of .net C++ has in comparision to C#?

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

问题描述

大家好,

1).net C ++与C#相比有多少支持?
2)为什么C ++不被称为C ++.net(如果我没记错的话)而C#被称为C#.net?

Hello to every body,

1)How much support of .net C++ has in comparision to C#?
2)why C++ is not called C++.net(if i am not wrong) while C# is called as C#.net?

推荐答案

没有C#这样的语言.NET或C ++.有C#,C ++和C ++/CLI.

那么,什么是".NET C ++支持"呢?哪有这回事;只有C ++/CLI支持.NET.与其他.NET高级语言相比,C ++/CLI具有一个独特的功能:引用类型的值语义;得益于此功能,引用类型的变量可以是真正的堆栈变量,而堆上不使用任何内存.在其他语言中这是不可能的.

注意:C ++/CLI的前身为"Managed C ++",现已不存在,不再受支持.

对于不同种类的语法糖",C#(以及某些衍生语言,例如Spec#)更加强大和优雅.

这里不可能进一步讨论语言之间的差异.如果您想了解所有内容,只需阅读语言手册,然后花两三天或更多天的时间来通读它们-顺便说一句,这对您非常有用.

-SA
There are no such languages as C#.NET or C++. There are C#, C++ and C++/CLI.

So, what do you mean "support of .NET C++ has"? there is no such thing; only C++/CLI has support of .NET. There is one unique feature of C++/CLI compared to other .NET high-level languages: value semantics for reference type; thanks to this feature, the variable of reference types could be true stack variables with no part of memory used on heap; in other languages this is impossible.

Note: C++/CLI had a predecessor called "Managed C++", now defunct and not supported any more.

As to different kinds of "syntactic sugar", C# (and some derivative languages such as Spec#) is more powerful and elegant.

There is no possibility to discuss the difference between languages in further detail here. If you want to know all, simply take the language manuals and spend couple or more days to read them all through — it would be very useful for you, by the way.

—SA


1.我没有这个问题.托管C ++具有与C#相同的功能,因为它们都使用相同的框架.
2.没有所谓的C#.Net.
1. I don''t get this question. Managed C++ has same powers as C# since both use same framework.
2. There is nothing called C#.Net.


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

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