An Introduction to Object-Oriented Programming in C++: with - download pdf or read online

By Graham M. Seed BEng, MPhil, PhD, MIAP (auth.)

ISBN-10: 1447102894

ISBN-13: 9781447102892

ISBN-10: 1852334509

ISBN-13: 9781852334505

An advent to Object-Oriented Programming in C++ with applications in desktop Graphics introduces the reader to programming in C++ step-by-step from the easiest of C++ courses, via positive aspects similar to periods and templates to namespaces. Emphasis is put on constructing an exceptional programming procedure and demonstrating whilst and the way to exploit the extra complicated good points of C++ throughout the improvement of real looking programming instruments and classes.
This revised and prolonged 2d version includes:
- the normal Template Library (STL), a big addition to the ANSI C++ standard
- complete insurance of the entire significant issues of C++, akin to Templates; exception dealing with; RTTI
- sensible instruments constructed for object-oriented special effects programming
All code application records and routines are ANSI C++ appropriate and feature been compiled on either Borland C++ v5.5 and GNU/Linux g++ v2.91 compilers, and come from the author's internet site:

Show description

Read Online or Download An Introduction to Object-Oriented Programming in C++: with Applications in Computer Graphics PDF

Similar programming: programming languages books

Read e-book online Professionell entwickeln mit Visual C# 2010 PDF

Эта энциклопедия будет интересна в первую очередь современным охотникам, любителям стрельбы по тарелочкам и коллекционерам. Написанная специалистом по оружию, она может служить справочным пособием для всех любителей охотничьего оружия.

Extra info for An Introduction to Object-Oriented Programming in C++: with Applications in Computer Graphics

Example text

Therefore, consider the development of a program to characterise a variety of different shapes. At this point you will probably be unfamiliar with the C++ implementation details, so try to concentrate on the object-oriented approach. At a later stage you may want to refer back to this chapter in order to fully understand the ideas presented. S Object approach. Objects talk to each other. Car Fig. 6 World objects. generating individual shapes, the division of such details into functions, and the flow of information through a shapes program into a series of steps.

Thinking in terms of messages, consider again an object, c, of the geometric class Ci rc 1 e, which describes a circle. To determine the area of c we send an area message (in the form of a call to the Circle: : Area () member function) to object c: Circle c ; I I ... Area () ; II compute area of object c The object itself processes the area message. If we send the same area message to other objects, such as Rectangle and Triangle, then the message-object-process is identical and independent of the type of object.

AMatrix class. header fIle for Vector class. implementation fIle for Vector class. header fIle for Ma tr ix class. implementation fIle for Matrix class. tests the modified Ma tr ix class which constructs an array of Vector objects and allows C++-style subscripting of Matrix elements. implements a Max () function with different argument types by function overloading. implements a Max ( ) function as a template function. illustrates a template function declaration. illustrates multiple type arguments for template functions.

Download PDF sample

An Introduction to Object-Oriented Programming in C++: with Applications in Computer Graphics by Graham M. Seed BEng, MPhil, PhD, MIAP (auth.)

by Kenneth

Rated 4.78 of 5 – based on 10 votes