Click here to Skip to main content
15,890,557 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
#include<iostream.h>

int main()
{
cout<<"Hello World";

return 0;

}
Posted
Comments
Richard MacCutchan 12-Mar-14 5:09am    
They are quite different. If you want the full details then Google is your best bet.
Legor 12-Mar-14 6:38am    
I can't see how the code relates to your question?
Nawabpasha 12-Mar-14 8:52am    
I just gave example to convert it to c++ to C#

This isn't really a question: you can't compare C++ (which is a language) against .NET (which is a framework). You don't write programs in .NET: you write programs for .NET, in a compatible language: which may be C#, VB ... or C++ sometimes.

C# is a language for .NET in that it was created for it, and it used exclusively to produce .NET compatible programs (if you ignore mono, etc.) while C++ is a language originally derived from C which can be use for .NET, but can also be used to produce native applications which support other frameworks such as MFC.

You can't even compare C# and C++ that easily: they are very different languages which share a similar looking syntax - up to a point. If you try to code C++ in C# it may compile - but it probably won't work too well, and vice versa.
 
Share this answer
 
Check out the following URL for comparisons between programming languages:
http://en.wikipedia.org/wiki/Comparison_of_programming_languages
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900