Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VC++ and C#
Message
De
26/07/2001 04:07:54
 
 
À
26/07/2001 00:27:25
Information générale
Forum:
Visual C++
Catégorie:
Autre
Titre:
Divers
Thread ID:
00535524
Message ID:
00535556
Vues:
25
Winan,

There are a lot of differences, if I had to choose the most important it would be these:-

1] Grammar - C++ and C# have different language grammars, C# is based on the C++ language but its not C++ for example look at the difference between these examples.

C++ Example
#include "iostream"                 

using namespace std;

void main(void)
{
   cout << "Hello from Visual C++";
}
C# Example
using System;

class Sample {
   public static void Main()
   {
   Console.WriteLine("Hello from C#");
   }
}
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform