C#和C ++的重点是什么? [英] What's the point of C# and C++

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

问题描述

从VB(最后一次使用6.0)中获得了一个looong休息之后,我开始再次回到编程中,这次是VS 2005。我开始了

阅读从各种来源(书籍,互联网等)上看VB.NET和发现有关CLR以及所有.NET语言如何访问它的


主要区别在于个人

语言的语法和结构。我在想,因为VB.NET显然比C#.NET和C ++ .NET更容易学习/使用,为什么这些其他存在(在
$ b $中) b ..NET格式,而不是标准库/编译为独立.exe

版本)?


我已阅读论坛讨论和其他人说C#的新闻组比VB更好,而且VB更容易使用(就是这样)

但是如果他们都在访问/使用相同的.NET运行时那么

点是什么?我不是愤世嫉俗;我只是很困惑,为什么我应该学习C#,如果它不比VB更好或更差。我很可能

在这里遗漏了一些东西,如果是的话我真的很想知道它是什么。


提前致谢


Zach

After having taken a looong break from VB (last used 6.0), I started
getting back into programming again, this time with VS 2005. I began
reading up on VB.NET from various sources (books, internet, etc.) and
found out about the CLR and how all of the .NET languages access it, the
major difference being the syntax and structure of the individual
languages. What I''m wondering, since VB.NET is obviously easier to
learn/use than C#.NET and C++.NET, why do these others exist (in the
..NET "format", not the standard library/compile to standalone .exe
versions)?

I''ve read discussions in forums and newsgroups from others saying C# is
better than VB for this and that or VB is easier to use (which it is)
but if they''re all accessing/using the same .NET runtime then what''s the
point? I''m not being cynical; I''m just confused as to why I should
bother learning C# if it isn''t better or worse than VB. I''m probably
missing something here and if so I''d really like to know what it is.

Thanks in advance

Zach

推荐答案

" Zach" < zs **** @ cox.net.nospamwrote in message

news:%2 **************** @ TK2MSFTNGP06.phx.gbl。 ..
"Zach" <zs****@cox.net.nospamwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...

从VB(最后一次使用6.0)开始执行looong休息后,我开始重新进入编程,这次是再次进入编程与VS 2005.我开始从各种来源(书籍,互联网等)读取VB.NET和

发现有关CLR以及所有的.NET语言访问它,

主要区别在于各个

语言的语法和结构。我在想,因为VB.NET显然比C#.NET和C ++ .NET更容易学习/使用,为什么这些其他存在(在.NET中)

格式,而不是标准库/编译为独立的.exe版本)?
After having taken a looong break from VB (last used 6.0), I started
getting back into programming again, this time with VS 2005. I began
reading up on VB.NET from various sources (books, internet, etc.) and
found out about the CLR and how all of the .NET languages access it, the
major difference being the syntax and structure of the individual
languages. What I''m wondering, since VB.NET is obviously easier to
learn/use than C#.NET and C++.NET, why do these others exist (in the .NET
"format", not the standard library/compile to standalone .exe versions)?



两者存在的原因是它们针对不同的市场。 C#是

更多针对的是日复一日编程的人,而VB更多是针对你的休闲程序员的b $ b。在某些情况下,VB比C#

更容易使用,但VB有很多缺点。虽然它有一些小的节省时间

的例子,当你需要使用指针时这些是相当微不足道的。

卡在VB项目中(指针对于高速位图和

视频流操作.Donet可以保持相当高的帧速率和实时视频操作视频。就个人而言,只需键入所有

,vb中所需的关键字足以让我更喜欢c#。例如

函数,sub,dim,as,directcast,not,我必须每天输入1000次以上

并且我真的厌恶输入它们,特别是直播。 :-)


至于C ++,它当然是用C ++编写点网库。


Michael

The reason both exist is that they are aimed at different markets. C# is
more aimed at someone who is programming day in and day out while VB is more
aimed at your casual programmer. In some cases VB is easier to use than C#
but there a lot of disadvantages with VB. While it has some minor timesaving
examples these are fairly insignificant when you need to use pointers and
are stuck in a VB project (pointers are useful for high speed bitmap and
video stream manipulation. Donet can keep up a fairly high frame rate and
manipulare video in real time). Personally for me just having to type all
the keywords that are required in vb is enough to make me prefer c#. eg
function, sub, dim, as, directcast, not, I must type these 1000+ times a day
and am really sick of typing them, especially directcast. :-)

As for C++ it''s there for writing dot net libraries in C++ of course.

Michael


" Michael C" < mi *** @ nospam.comschrieb
"Michael C" <mi***@nospam.comschrieb

两者存在的原因是它们针对不同的市场。 C#是

更多的是针对那些日复一日编程的人而VB是

更多的是针对你的休闲程序员。
The reason both exist is that they are aimed at different markets. C# is
more aimed at someone who is programming day in and day out while VB is
more aimed at your casual programmer.



:-D这是过去几年我在这个小组中读过的最有趣的陈述之一。

。嘿,另一个:C ++是为孩子们发明的3到
和6.然后他们觉得无聊并升级到C#。我大笑起来。

Zach,C#和VB非常接近。每个都比

其他有一些优势。所以,这主要是品味问题。例外证明了这一规则。你可以开始另一个长时间的讨论,因为它们已经在过去发生过了多年,或者你只相信我,他们写了超过20年的程序
现在,在Assembler,Pascal / Delphi,C#,C ++和几个版本的Basic中。先生

迈克尔C似乎是一个巨头,最近他的存在让我们感到高兴。决定你自己的
。无论如何,无论你喜欢什么语言,它们都不是针对休闲程序员的目标。另一方面,如果你不需要,我可以使用C ++ / CLR(!)清楚地劝阻你。


Armin


:-D This is one of the funniest statements I''ve ever read in this group in
the past years. Hey, another one: C++ was invented for children between 3
and 6. Then they feel bored and upgrade to C#. I''m convulsed with laughter.
Zach, C# and VB are very close together. Each has some advantages over the
other. So, it''s mainly a matter of taste. Exceptions prove the rule. You can
start another long discussion as they have already taken place in the past
years, or you just can believe me, who writes programs for over 20 years
now, in Assembler, Pascal/Delp C#, C++ and several versions of Basic. Mr.
Michael C seems to be a troll gracing us with his presence lately. Decide on
your own. Anyway, whatever language you prefer, none of them is by far aimed
to casual programmers. On the other side, I can clearly discourage you from
using C++/CLR(!) if you don''t have to.

Armin


2008年10月31日星期五13:33:14 +1100,Michael C < mi *** @ nospam.com>

写道:
On Fri, 31 Oct 2008 13:33:14 +1100, "Michael C" <mi***@nospam.com>
wrote:

>" Zach" < zs **** @ cox.net.nospamwrote in message
新闻:%2 **************** @ TK2MSFTNGP06.phx.gbl ...
>"Zach" <zs****@cox.net.nospamwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...

>在从VB(最后一次使用6.0)中获得looong休息之后,我开始重新开始编程,这次是VS 2005.我开始了
从各种来源(书籍,互联网等)阅读VB.NET,了解了CLR以及所有.NET语言如何访问它,
主要区别在于各种语言的语法和结构。我想知道,因为VB.NET显然比C#.NET和C ++ .NET更容易学习/使用,为什么这些其他存在(在.NET格式中),不是标准的库/编译到独立的.exe版本)?
>After having taken a looong break from VB (last used 6.0), I started
getting back into programming again, this time with VS 2005. I began
reading up on VB.NET from various sources (books, internet, etc.) and
found out about the CLR and how all of the .NET languages access it, the
major difference being the syntax and structure of the individual
languages. What I''m wondering, since VB.NET is obviously easier to
learn/use than C#.NET and C++.NET, why do these others exist (in the .NET
"format", not the standard library/compile to standalone .exe versions)?


两者存在的原因是它们针对不同的市场。 C#更多的是针对那些日复一日编程的人,而VB更多的是针对你的休闲程序员。在某些情况下,VB比C#更容易使用,但VB有很多缺点。虽然它有一些小的节省时间的例子,但是当你需要使用指针并且它们被卡在VB项目中时,它们是相当微不足道的(指针对于高速位图和
视频流操作非常有用.Donet可以保持相当高的帧速率和实时操作视频)。就个人而言,只需输入所有
vb中所需的关键字就足以让我更喜欢c#。例如
函数,sub,dim,as,directcast,not,我必须每天输入1000次以上
并且我真的厌恶输入它们,尤其是直播。 :-)

至于C ++,它当然是用C ++编写点网库。

Michael


The reason both exist is that they are aimed at different markets. C# is
more aimed at someone who is programming day in and day out while VB is more
aimed at your casual programmer. In some cases VB is easier to use than C#
but there a lot of disadvantages with VB. While it has some minor timesaving
examples these are fairly insignificant when you need to use pointers and
are stuck in a VB project (pointers are useful for high speed bitmap and
video stream manipulation. Donet can keep up a fairly high frame rate and
manipulare video in real time). Personally for me just having to type all
the keywords that are required in vb is enough to make me prefer c#. eg
function, sub, dim, as, directcast, not, I must type these 1000+ times a day
and am really sick of typing them, especially directcast. :-)

As for C++ it''s there for writing dot net libraries in C++ of course.

Michael



我不同意VB是针对休闲程序员的。


作为编写C和C ++代码超过20年的人,我现在

更喜欢VB.NET到C#。是的,它有点冗长,但我喜欢

。有时候C#会非常神秘,而VB.NET中你做不到的东西很少,这些东西对我影响不大。

I do not agree that VB is aimed at casual programmers.

As someone who has written C and C++ code for over 20 years, I now
prefer VB.NET to C#. Yes it is a little more verbose, but I like
that. C# can be very cryptic sometimes, and the small number of
things you can''t do in VB.NET are not things that affect me very much.


这篇关于C#和C ++的重点是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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