![]() |
|
|
|
| ||||||
|
Welcome to the The ProgrammersTalk Community forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| Tags: cnet, cplusplusnet, dotnet, net |
![]() |
![]() | | LinkBack | Thread Tools | Display Modes | ![]() |
| |
| ||||
| Quote:
To me it comes across as an easy way to code a C++ windowed application. (To code it you use microsoft Visual C++ the .NET bit tells you that its using the .NET framework if you didn't know). |
| |||
| 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;
} 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. Last edited by rpgfan3233 : 07-21-2007 at 04:24 PM. Reason: Added code examples for comparison. |
![]() |
| Thread Tools | |
| Display Modes | |
| |