Hiding the implementation A typical C library contains a struct and some associated functions to act on that struct. So far, you ve seen how C++ takes functions that are conceptually associated and makes them literally associated, by puttin Citeste tot ...
Dimensiune
Dynamic object creation
Dynamic object creation Sometimes you know the exact quantity, type, and lifetime of the objects in your program. But not always. How many planes will an air-traffic system have to handle? How many shapes will a CAD system need? How many node Citeste tot ...
Dimensiune
Constants
Constants The concept of constant (expressed by the const keyword) was created to allow the programmer to draw a line between what changes and what doesn’t. This provides safety and control in a C++ programming project. Since its origin, con Citeste tot ...
Dimensiune
Iostreams
Iostreams So far in this book we’ve used the old reliable C standard I/O library, a perfect example of a library that begs to be turned into a class. In fact, there’s much more you can do with the general I/O problem than just take standard I Citeste tot ...
Dimensiune
Initialization & cleanup
Initialization & cleanup Chapter 4 made a significant improvement in library use by taking all the scattered components of a typical C library and encapsulating them into a structure (an abstract data type, called a class from now on). Citeste tot ...
Dimensiune
Data abstraction
Data abstraction C++ is a productivity enhancement tool. Why else would you make the effort (and it is an effort, regardless of how easy we attempt to make the transition) to switch from some language that you already know and are productive Citeste tot ...
Dimensiune
Operator overloading
Operator overloading Operator overloading is just “syntactic sugar,” which means it is simply another way for you to make a function call. The difference is the arguments for this function don’t appear inside parentheses, but instead surround Citeste tot ...
Dimensiune
Programming guidelines
Programming guidelines This appendix[1] is a collection of suggestions for C++ programming. They’ve been collected over the course of my teaching and programming experience and also from the insights of friends including Dan Saks (co-author w Citeste tot ...
Dimensiune
Compiler specifics
Compiler specifics This appendix contains the compiler information database which is used by the automatic code extraction program ExtractCode.cpp to build makefiles that will work properly with the various compilers. The explanation for this Citeste tot ...
Dimensiune
STL Containers & Iterators
STL Containers & Iterators Container classes are the solution to a specific kind of code reuse problem. They are building blocks used to create object-oriented programs – they make the internals of a program much easier to construct. A c Citeste tot ...
Dimensiune
Tools & topics
Tools & topics Tools created & used during the development of this book and various other handy things The code extractor The code for this book is automatically extracted directly from the ASCII text version of this book. The book Citeste tot ...
Dimensiune
All about c
Preface. 6 Preface to the first edition. 8 Chapter 1 - A Tutorial Introduction. 9 1.1 Getting Started. 9 1.2 Variables and Arithmetic Expressions. 11 1.3 The for statement 16 1.4 Symbolic Constants. 17 1.5 Character Input and Out Citeste tot ...
Dimensiune
Managed Extensions for C++ Specification
Managed Extensions for C++ Specification Abstract This document describes the Managed Extensions for C++, an extension of the C++ language. These extensions encompass a set of features that will support the common type system and the common l Citeste tot ...
Dimensiune
File I/O in C++
File I/O in C++ Introduction This tutorial will start with the very basis of File I/O (Input/Output) in C++. After that, I will look into aspects that are more advanced, showing you some tricks, and describing useful functio Citeste tot ...
Dimensiune
Application Development with C++Builder and Delphi
Application Development with C++Builder and Delphi Written by Charlie Calvert Overview C++Builder and Delphi have a unique relationship that allows programmers to easily share code between the two environments. Almost anything you w Citeste tot ...
Dimensiune
ANSI IMPLEMENTATION-SPECIFIC STANDARDS
ANSI IMPLEMENTATION-SPECIFIC STANDARDS -------- ----- ------ ----- Certain aspects of the ANSI C standard are not defined exactly by ANSI. Instead, each implementor of a C compiler is free t Citeste tot ...
Dimensiune
External Procedure Supplement
External Procedure Supplement This document supplements the information in the Applications Development chapter of the Getting Started for Windows NT manual. It explains how to run the sample and gives some trouble-shooting advice. Citeste tot ...
Dimensiune
C++ access control
[ C++ ] 1. C++ access control // // BASE CLASS // class A ~A() ; int GetProtectedField() int GetPrivateField() protected: int m Citeste tot ...
Dimensiune
Sharing Code and Objects Between Delphi and C++
Sharing Code and Objects Between Delphi and C++ Conrad Herrmann, Staff Engineer, Borland International Delphi s unique blend of component-oriented development methodologies and lightning-fast compilation have made it extremely popular since Citeste tot ...
Dimensiune
Getting Started with Visual C# 2005 Express Edition
Getting Started with Visual C# 2005 Express Edition Hello and welcome to this sixteen lesson video series that will help you get started with Visual C# 2005 Express Edition. These lessons and the accompanying documents with supplemental re Citeste tot ...