C# vs C++

Hi,

Can anybody tell me what are the major differences between C# and C++? And providers of C# development environment.

Thanks in advance.

BILLPOWER
BILLPOWERAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

cocojohnCommented:
C++
- Can be compiled to native code (if not C++ .NET)
- Complicated syntax
- supports pointers etc.

C#
- Only available for .NET
- Syntax is more like Java than C++
- doesn't really support pointers
- easy to learn and use
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Arthur_WoodCommented:
in addition to Visual Studio.NET as a C# development environment, you might also take a look at

http://www.icsharpcode.net/


AW
0
dude1337Commented:
For me C# is easier to make windows applications in than C++.
0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

cocojohnCommented:
There's another thing:
C# is completely object oriented.
In C++ you can write "dirty code", if you want to.
0
functionpointerCommented:
C/C++ is the lanugage Java is written in, whereas C# the language the is a ripoff of Java. That's the difference.
0
dude1337Commented:
C# isn't a rip of Java, it is an advancement.  You probably program Java and are pissed the C# is better.  You know in your terms everything is a rip.  C++ ripped C then.  So you know just cause technology is getting better doesn't mean you gotta get pissed, get a book learn the new language and use it until the next language is developed.
0
functionpointerCommented:
dude1337-for the record, i program from MIPS to 4GL, and im not mad at anyone, including you. as far as who ripped what, i didnt see anyone rename C as C++ and try to sell it to anyone. a duck is a duck. I just pointed out that which had not already been.

regarding the question at hand, C# is like C++ for dummies( no offense ). Yes, its much simpler to use and easier to learn than C/C++, but no, its not as powerful. C# is so much easier and simpler because it is dependent on the .Net framework, which handles quite a bit of the nasty stuff for you. On the other hand, C/C++ can do everything and more, and, properly written, be recompiled to run where you need it without the .Net framework.
0
MrGhostCommented:
And IT DOES SUPPORT pointers!!!

0
functionpointerCommented:
> And IT DOES SUPPORT pointers!!!
Yes, in a bizarre sort of way, it does.
0
jcaldwelCommented:
If C++ is C incremented, then shouldn't an advancement (so-called) on Java be called J++.

Wait, it USED to be called that, but Sun Microsystems stopped that, Huh? Lets change some keywords and call it a new language. :)
0
DominicCroninCommented:
Actually the unsafe mode in C# (where you can use pointers) is one of the things that make it different to Java.

Other differences are:

Delegates
Enums !!
Automatic boxing
Foreach
Operator overloading

C# and Java are very definitely different languages.

Anyway - Microsoft needed a language pretty much in the same place along the productive-powerful spectrum as Java. There was too large a gap between VB and VC++. Of course it was going to be another object-oriented C derivative, with garbage collection etc, etc, just like any other modern language. There's also quite some sense in making the learning curve as shallow as possible for programmers wishing to transfer between the two.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.