FACTOID # 81: Two-thirds of the world's kidnappings occur in Colombia.
 
 Home   Encyclopedia   Statistics   Countries A-Z   Flags   Maps   Education   Forum   FAQ   About 
 
WHAT'S NEW
RECENT ARTICLES
More Recent Articles »
 

FACTS & STATISTICS    Simple view

  1. Select countries to view: (hold down Control key and click to select several)

     

     

    Compare:

     

     

  1. Select fact or statistic: (* = graphable)

     

     

     

  2. (OPTIONAL) Compare to statistic: (both need to be graphable)

     

     

     

  3. View result as:

     

       
(OR) SEARCH ALL encyclopedia, stats & forums:   

Encyclopedia > C Plus Plus CLI

Overview

C++/CLI is the newer language specification due to supersede Managed Extensions for C++. Completely reviewed to simplify the older Managed C++ syntax, it provides much more clarity over code readability than Managed C++. It is currently only available on Visual Studio 2005 Beta editions. // Overview Managed Extensions for C++ is a set of keywords and attributes to bring the C++ syntax and language to the . ... Visual Studio 2005 is the latest development suite from Microsoft, due for release during the week beginning 7th November 2005. ...


One of the most visible improvements is the elimination of ambiguous identifiers. For example, in MC++, there were two different types of pointers: __nogc pointers were normal C++ pointers, while __gc pointers referred to .NET reference types. In C++/CLI the only type of pointer is the normal C++ pointer, and the .NET reference types are accessed through a "handle", with the new syntax ClassName^ instead of ClassName*. The importance of this change becomes crucial when managed and unmanaged code is mixed: where you previously saw a sea of pointers, you can now tell which objects are under garbage collection and which must be destroyed.


Other conflicting syntaxes, such as the multiple versions of operator new() in MC++ have been split: in C++/CLI, .NET reference types are created with the new keyword gcnew. Also, C++/CLI has introduced the concept of generics (similar to unmanaged C++ templates, but quite different).

 // Managed extensions for C++ #using <mscorlib.dll> using namespace System::Collections __gc class referencetype { protected: String* stringVar; int intArr __gc[]; ArrayList* doubleList; public: referencetype(String* str, int* pointer, int number) // Which one is managed? { doubleList = new ArrayList(); System::Console::WriteLine(str->Trim() + number.ToString()); } }; 
 // C++/CLI #using <mscorlib.dll> using namespace System::Collections::Generic ref class referencetype { protected: String^ stringVar; array<int> intArr; List<double>^ doubleList; public: referencetype(String^ str, int* pointer, int number) // Ambiguous no more { doubleList = gcnew List<double>(); System::Console::WriteLine(str->Trim() + number); } }; 

  Results from FactBites:
 
C plus plus - Wikipedia, the free encyclopedia (3963 words)
5 C++ is not a superset of C
C++ supports this (via member functions and friend functions), but does not enforce it: the programmer can declare parts or all of the representation of a type to be public, and is also allowed to make public entities that are not part of the representation of the type.
C++ compilers still struggle to support the entire C++ standard, especially in the area of templates — a part of the language that was more-or-less entirely conceived by the standards committee.
Main Page - C Plus Plus (135 words)
C++ is a general purpose 3rd generation programming language developed by Bjarne Stroustrup during 1980s.
C++ is similar to C but has many enhancements like operator overloading and virtual functions.
C++ is generally considered to be the best 3rd generation language and is one of the most popular programming media.
  More results at FactBites »


 

COMMENTARY     


Share your thoughts, questions and commentary here
Your name
Your comments
Please enter the 5-letter protection code

Want to know more?
Search encyclopedia, statistics and forums:

 


Lesson Plans | Student Area | Student FAQ | Reviews | Press Releases |  Feeds | Contact
The Wikipedia article included on this page is licensed under the GFDL.
Images may be subject to relevant owners' copyright.
All other elements are (c) copyright NationMaster.com 2003-5. All Rights Reserved.
Usage implies agreement with terms.