1. C++ and C# comparison
Mr. A / 3 days ago
C++ and C# comparison
When talk about C++ and C# has enjoyed huge number of programmers, but since C++ trend is
beginning and why not? It is the best among the languages which provide bread and butter for
actual system programs.
As far as job opportunities are concerned. Here is the whole article
http://www.arcos.inf.uc3m.es/~jdaniel/sem-cpp-11/Madrid-bs.pdf
By looking at those links, C++ nowadays , is in lime light just like C# when it was launched.
You can’t write device drivers that runs in kernel mode in C#. C# produces intermediate
language that is interpreted by a virtual machine (.NET). All these stuff runs in user mode and
WDM drivers run in kernel mode.
You can’t write device drivers in managed code, therefore you can’t write a device driver in C#.
You’ll need to write it in either assembly or unmanaged C/C++.
We can not develop kernel drivers with C# because C# is converted to native language.
However, not all device drivers on Windows require kernel mode to run. The video drivers,
audio drivers, now run in user mode in both Windows Vista and Windows 7. Also there’s now a
User-Mode Driver Framework available from Microsoft. but still C++ leads.What C++ offers
that is not present in C# are
1. Template metaprogramming
2. Typedefs
3. Zero-overhead principle
4. Means to enforce const-correctness
5. Mature compilers that produce extremely optimized code nowadays
6. Much wider platform support
Can asp.net application be built with C++ language ?
The bad aspects of modern languages like C#, Java etc is huge memory consumption due to
heavy platform installation, and if users have to work with them, they have to install these
platforms. C++ applications are faster to launch.
An important point to be noted is that, C++ is Borland property, therefor it is not the language of
choice for Asp.Net application. It is for system or game programer
2. Begin C++ Programming
Since we have debated on the facts where C++ has edge over other language. Let us start writing
something with C++ editor in order to begin C++ programming. In my case, it is visual studio
2012 development IDE due to its enormous features. Our first program is Hello C++ and let us
see what we have to do with our C++ development IDE.
Remember one thing before learning something new is to have love for this features. Your love,
passion and hunger will make you the champ, not those hurting words that common people often
use. Just keep them aside.Always think like that their profession is to talk non-sense or to make
joke. In simple, these sort of people are dumb.So, you are the best and think like this 200 times a
day.
Our first program is quite simple, it uses cout for displaying output to the console.
Program
/*Pre-compiled headers can greatly speed the up the compilation of the .cpp files in your project.
By convention, it is stdafx.h that #includes all of the .h files that you want to be precompiled.
You can name it anything you want but the project template just picks stdafx.h*/
#include “stdafx.h”
//The iostream library is an object-oriented library that provides input and output functionality
using streams.
#include
// namespace std contains many classes
using namespace std;
int main()
{
// cout is used to display out put on console
cout << "hello C++ lovers.n";
return 0;
}