C# vs C++ vs Vb.Net
Let’s clear our minds from the thoughts about programming language comparison by examining each of them separately
C++ programming language
Everyone looks curious whether he should learn C#, Vb.Net or C++. Today, I am unloading all those curiosities from your heads by explaining about these big three’s in details;whether you choose C++ programming language, C# or Vb.Net
The C# benefits
For about a decade period , most of the job opportunities coming from countries like pakistan, india etc. are related to design web based application with C# as its server side script.So it is obvious that C# is the giant in developing countries.Moreover, C# is better known as the Windows form based language as well. But C# is also used in OS driver development.th fever of asp.net mvc has made C# to outclass Vb.Net completely. Vb.Net is good but today’s job demands are more for C3 than those for Vb.Net
The C++ benefits
C++ is still a champ in game programming. The plus point that the developers find in it is the memory management as it is mostly needed in creation and destruction of large objects such as the villain in your Super Mario game.
But point to be noted that C# is making its way to rule the world of Microsoft XNA games. With that being said, C++ is still there for operating systems drivers, C++ programs embedded in music player systems etc.
Features of Visual Basic .NET not found in C#
Variables can not be declared using the WithEvents construct. This construct is available so that a programmer may select an object from the Class Name drop down list and then select a method from the Declarations drop down list to have the Method signature automatically inserted.Auto-wireup of events. VB.NET has the Handles syntax for events.Referring to an object using an unqualified dot reference, using the With … End With structure.XML Literals.Inline date declarations, using #1/1/2000# syntax (M/dd/yyyy).Module (although C#’s sealed static classes with additional semantics, but each field must be individually declared as static).Members of Modules imported to the current file, can be accessed with no preceding container accessor (See Now for example).The My namespace COM components and interoperability was more powerful in VB.NET, as the Object type is bound at runtime; however, C# 4.0 added the dynamic type, which functions as a late-bound form of Object
Namespaces can be imported at the project level, so that they don’t have to be imported into each individual file, as in C#
In-line exceptions filtering by boolean expression, using When
Definition of conditional compiler constants.Property methods may take parameters.Properties can be passed as references. Enums can be defined inside interfaces
Features of C# not found in Visual Basic .NET
Allows blocks of unsafe code (like C++/CLI) via the unsafe keyword, and support for pointers.Partial Interfaces.Multi-line and intra-line comments (the Visual Studio IDE supports multi-line commenting for Visual Basic .NET)
Multi-line strings with the @ symbol.Static classes (classes which cannot contain any non-static members, although VB.NET’s Modules are essentially sealed static classes with additional semantics).Can use checked and unchecked contexts for fine-grained control of overflow/underflow checking.Iterative for-loops can contain multiple conditionals, such as for(int i = 0; i < 10 && somethingTrue; i++).The && (And) operator in conditionals is always a short-circuit. VB.Net requires the use of the special keyword AndAlso.The same thing applies with || (Or) that is equivalent to OrElse.Other characteristics of Visual Basic .NET not applicable to C#.Conversion of Boolean value True to Integer may yield -1 or 1 depending on the conversion used.Assigning and comparing variables uses the same token: =. Whereas C# has separate tokens, == for comparison and = to assign a value.VB.NET is not case-sensitive.When assigning a value to a variable with a different data type What our friends have to say about C# vs C++
What makes C# so versatile is that you can program almost anything with the language. You can create websites with either the MVC framework or older frameworks such as web forms. You can create web or windows services. You can also create console or networking applications. Basically, with one language, you can create any type of application that comes your way.
In short, go for C# for application development and C++ for system programming