CppLangFeat Sample: Language Features Overview

This sample demonstrates key concepts of features in C++ that support the .NET Framework and expose the capabilities of the common language runtime (CLR). The sample presents snippets of code for each language feature, and shows typical ways to use the C++ syntax. You can build and run the sample. For best results, use debugger breakpoints to walk through the code so that you can better understand how the features work.

Security noteSecurity Note

This sample code is intended to illustrate a concept, and it shows only the code that is relevant to that concept. It may not meet the security requirements for a specific environment, and it should not be used exactly as shown. We recommend that you add security and error-handling code to make your projects more secure and robust. Microsoft provides this sample code "AS IS" with no warranties.

To get samples and instructions for installing them:

-

### To access samples from Visual Studio

  - On the **Help** menu, click **Samples**.
    
    By default, these samples are installed in drive:\\Program Files\\Microsoft Visual Studio 10.0\\Samples\\.
  • For the most recent version of this sample and a list of other samples, see Visual Studio Samples on the MSDN Web site.

To build and run this sample

  1. Open C++ Language Samples.sln.

  2. On the Build menu, click Build Solution.

  3. On the Debug menu, click Start.

Demonstrates

Generics, finalization, and partial template specialization.

How it Works

Every file in the sample demonstrates a feature of the C++ language. When the sample is run, the features are used in turn, and output from each corresponding file is displayed.

See Also

Other Resources

General Samples