The C++ Programming Tutorials: C++ Arrays and Collection Classes
| |
|
This module is concerned with data structures. You’ll learn about arrays and other collection classes, and you’ll learn how to use them in your programs. In the first part of the module, you’re going to learn about two sorts of arrays - the native arrays provided by the C++ language and the .NET managed arrays, which use functionality inherited from the .NET Framework. You’ll find out how they all work and when one should be used rather than the other. The second part of the module looks more widely at the range of collection classes provided by the .NET Framework, discussing their characteristics and showing you how and when to use them. Native arrays are those provided as part of the C++ language. They’re based on the arrays that C++ inherits from C. Although native arrays are designed to be fast and efficient, there are drawbacks associated with using them. Because reference types are always accessed using references, creating and initializing arrays of reference types is slightly different from creating arrays of value types. You will also try the multi dimensional array. The multi dimensional array uses the same syntax as one dimensional array by setting the optional dimension parameter. Managed arrays in the .NET Framework all inherit from System::Array, which means that every managed array has a number of useful properties and methods. Array class provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the base class for all arrays in the common language runtime. The System::Collections and System::Collections::Specialized namespaces contain a number of very useful collection classes that can be used in C++ programs. the following are the topics in this Chapter.
|
Best viewed using FireFox, Chrome etc. Worst viewed using IE of any version
Webmaster contact: [contact[@]visualcplusdotnet.com] Copyright 2019 © Visualcplusdotnet. All rights reserved. Excellent hosting services provided by MochaHost - The Online Central
| About | Disclaimer | Privacy | Site Index & Project Download | Native C | Contact | | |
Custom Search | |
|
|