View Single Post
  #3 (permalink)  
Old 07-21-2007, 05:19 PM
rpgfan3233 rpgfan3233 is offline
PT Staff
Awards Showcase
Quality Tutorial Quality Tutorial Quality Tutorial Quality Tutorial 
Total Awards: 4
Join Date: Jul 2007
Posts: 118
iTrader: (0)
rpgfan3233 has a spectacular aura aboutrpgfan3233 has a spectacular aura aboutrpgfan3233 has a spectacular aura aboutrpgfan3233 has a spectacular aura aboutrpgfan3233 has a spectacular aura about
The simplest explanation (even if somewhat inaccurate at times) is that C++.NET simply adds the ability to use .NET code in C++ apps. Of course, since you use .NET code (even if you don't want to, it still translates to .NET), the .NET Framework is required. For example, what you use in C# (e.g. System.Console.WriteLine) should be able to be used in C++.NET in a C++ syntax -
Code:
using namespace System; //System namespace
int main () {
    Console::WriteLine("Hello World!");
    return 0;
}
rather than -
Code:
#include <iostream>
using namespace std;

int main () {
    cout << "Hello World!" << endl;
    return 0;
}

__________________
"C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do it blows your whole leg off."
-- Bjarne Stroustrup, creator of what is now known as C++
For more quotes by Bjarne Stroustrup, check out http://www.research.att.com/~bs/bs_faq.html#really-say-that.
Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!

Last edited by rpgfan3233 : 07-21-2007 at 05:24 PM. Reason: Added code examples for comparison.
Reply With Quote