Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:

lafore_robert_objectoriented_programming_in_c

.pdf
Скачиваний:
51
Добавлен:
27.03.2023
Размер:
8.94 Mб
Скачать

 

 

classes

985

buffers

running example programs

character variables

 

arrays, 292

in, 872

char variable, 42-43

 

C-strings, 292

screen elements, 873

wchar t variable, 43

 

bugs, 492-493

C-strings

checking errors in

 

build process for multifile

arrays, 297-298

streams, 580-583

 

programs, 638

blanks, 293-294

cin, 45-46, 576

 

 

buffers, 292

get() member function,

 

 

class members, 298-299

293-294

 

C

comparing, 337

overloaded extraction and

 

concatenating, 332

insertion operators,

 

C

constants, 292-293

616-618

 

converting to string

class diagrams, 820-821

 

additional references, 980

 

objects, 348-350

associations, 357-358

 

C++, 22-23

 

copying, 295-296

inheritance, 376

 

keywords, 860

 

function arguments,

navigability arrows, 358

 

overview, 10

 

453-454

uses, 357

 

The C Programming

 

multiple lines, 294-295

class keyword, 218, 529,

 

Language, 980

 

pointers, 452-456

860

 

C++

 

user-defined strings,

class libraries

 

additional references,

 

300-302

exceptions, 719

 

978-979

 

variables, 290-291

implementations, 635-636

 

C, 22-23

 

calling functions, 162,

interfaces, 635

 

graphics, 882

 

164, 166

multifile programs,

 

keywords, 860

 

array arguments, 276

634-636

 

C++ Distilled, 978

 

member functions,

classes

 

C++ FAQs, 978

 

221-223

abstract classes, 510

 

C++ IOStreams Handbook,

 

capacity() member func-

arrays as class members,

 

979

 

tion, 310, 750

279-283

 

The C++ Programming

 

case keyword, 860

associations, 357-358

 

Language, Third Edition,

 

casts, 58-60

attributes, 830

 

978

 

catch blocks, 705, 709,

base classes, 20, 372-376

 

C++Builder

 

712

abstract base classes,

 

capabilities, 872

 

catch keyword, 705, 709,

392-393

 

Console Graphics Lite, 878

 

860

accessing members,

 

debugging programs,

 

cerr, 577

376-377, 379

 

878-879

 

ch = fill() member func-

destructors, 517-518

 

breakpoints, 879-880

 

tion, 573

instantiating objects of,

 

single-stepping, 879

 

chaining assignment

510

 

tracing into functions,

 

operators, 535

pure virtual functions,

 

879

 

char data type, 290

510-511

 

watching variables, 879

 

char keyword, 860

virtual base classes,

 

executable programs,

 

char strings, 586-588

518-520

 

875-876

 

char variable, 42-43

benefits of, 256-257

 

file extensions, 872

 

character constants, 43-44

C-strings as class mem-

 

header files, 876-877

 

character I/O, 588-589

bers, 298-299

 

projects, 873-878

 

 

 

 

container classes, 726

986

classes

 

 

 

 

 

containers, 415-419

member functions

ifstream class, 568, 583

 

 

data hiding, 218

calling, 221-223

ios class, 569-574

 

data members

within class declara-

iostream class, 570

 

initialization, 229-230

tions, 220-221

iostream_withassign

 

private, 218-220

const, 252-254

class, 570, 576

 

public, 218-220

const arguments, 254

istream class, 569-570,

 

static, 249-252

constructors, 227-232,

574-575

 

declaring, 830

234-235

istream_withassign

 

defining, 218

defining outside

class, 570, 576

 

derived classes, 20,

classes, 236

istrstream class, 620

 

372-376, 380-382, 387

destructors, 232-233

ofstream class, 583

 

dynamic type information

messages, 223

ostream class, 569-570,

 

dynamic cast operator,

overview, 219-220

575-576

 

553-556

public versus private,

ostream_withassign

 

typeid operator,

220

class, 576

 

556-557

members

ostrstream class,

 

exception classes

arrays, 279-283

620-622

 

bad alloc class,

C-strings, 298-299

predefined stream

 

717-718

objects, 217-218

objects, 576-577

 

xalloc class, 718

benefits of, 256-257

strstream class, 620

 

features, 216-217

const, 255-256

string class, 302, 310

 

friend classes, 528-529

data types, 226-227

accessing characters in

 

friend functions, 520-528

defining, 221

string objects,

 

hierarchies, 388-393

examples, 223-226,

309-310

 

inheritance, 18-20,

243-246

append() member func-

 

372-376

function arguments,

tion, 307

 

code reusability, 373

233-234, 237

assigning objects,

 

examples, 384-388

initializing, 229-230,

303-304

 

graphic shapes,

238-240

at() member function,

 

393-396

memory, 247-249

309

 

hierarchies, 388-393

returning form func-

capacity() member

 

“kind of” relationship,

tions, 240-243

function, 310

 

415

ostream_iterator class,

compare() member

 

levels of, 399-403

767-768

function, 307-308

 

multiple inheritance,

overview, 18

comparing objects,

 

403-414

relationships, 489-490

307-308

 

private inheritance,

reusability, 21

concatenation, 332-334

 

396-399

self-containing classes,

converting to C-strings,

 

program development,

473

348-350

 

420-421

specifiers, 218

copy() member func-

 

public inheritance,

stream classes

tion, 309

 

396-399

advantages, 568

defining objects,

 

inter-file classes, 642-643

copying, 576

302-304

 

istream_iterator class,

fstream class, 583, 596

editing objects,

 

768-770

hierarchy, 568-570

306-307

 

 

 

 

 

 

console-mode applications

987

 

 

 

erase() member func-

clear_line() function, 883

Microsoft compilers, 30,

 

tion, 307

clear_screen() function,

885

 

find_first_not_of()

883

whitespace, 33

 

member function, 306

clear() function, 578

concatenating strings

 

find_first_of() member

Cline, Marshall, 978

C-strings, 332

 

function, 306

clog, 577

string class, 332-334

 

find_last_not_of() mem-

close() member function,

conditional operator,

 

ber function, 306

591

111-114, 360

 

find_last_of() member

closing files/streams, 591

console functions,

 

function, 306

code

883-885

 

find() member function,

blocks, 82

console graphics

 

306

catch blocks, 705, 709,

compilers, 885

 

finding objects,

712

description, 882

 

305-306

reusability, 373

inheritance, 393-396

 

getline() member func-

spaghetti code, 123

routines, 882-883

 

tion, 304-305

try blocks, 705, 709

Console Graphics Lite

 

input/output, 304-305

collaboration diagrams,

C++Builder, 878

 

insert() member func-

820

functions, 883-885

 

tion, 307

command-line arguments,

inheritance, 393-396

 

length() member func-

622-624

passing structures to func-

 

tion, 310

comments

tions, 174-176

 

max size() member

importance of, 36

routines, 882-883

 

function, 310

syntax, 36-38

Visual C++, 868

 

new operator, 462-463

uses of, 37

console-mode applica-

 

replace() member func-

compare() member func-

tions

 

tion, 307

tion, 307-308

Borland C++Builder, 872

 

rfind() member func-

comparing

Console Graphics Lite,

 

tion, 306

string objects, 307-308,

878

 

size() member function,

336-337

debugging, 878-880

 

310

strings, 478-479

executable programs,

 

substr() member

comparison operators,

875-876

 

function, 308

334-337

file extensions, 872

 

swap() member

compilers

header files, 876-877

 

function, 304

assignment operator,

projects, 873-878

 

structures, 148

532-536

running example pro-

 

syntax, 216-217

Borland compilers, 30,

grams in, 872

 

templates, 690-693

885

screen elements, 873

 

determining storage

console graphics, 885

Microsoft Visual C++

 

parameters, 701-702

copy constructors, 533,

building existing files,

 

example, 696-698

538

864-865

 

syntax, 694-696

directives, 35, 773

Console Graphics Lite,

 

UML, 702

function templates,

868

 

user-defined data types,

685-686

debugging, 868-870

 

698-701

how they work, 30

errors, 865-866

 

 

keywords, 860

file extensions, 864

 

 

 

multifile programs,

 

 

 

866-868

 

 

 

 

 

988

console-mode applications

 

 

 

 

 

RTTI, 866

prohibiting copying,

stacks, 732

 

 

screen elements, 864

539

STL, 726-732, 743-751,

 

single-file programs,

temporary objects, 538

771-778

 

864

default copy constructor,

contents of operator, 437

 

versions, 864

238-240

continue keyword, 860

 

writing new files, 865

derived class constructors,

continue statement,

 

const

380-382, 387

121-123

 

arguments of member

example, 231-232

control statements

 

functions, 254

initialization list, 229-230

decisions

 

function arguments,

multi-argument construc-

break statement, 109,

 

208-209

tors, 412

119-121

 

member functions,

multiple inheritance,

continue statement,

 

252-254

409-412

121-123

 

objects, 255-256

names, 229

goto statement, 123

 

overview, 252

overloading, 234-235

how they work, 93-94

 

const cast keyword, 860

overview, 227-229

if statement, 94-97

 

const keyword, 51, 252,

syntax, 230-231

if...else statement,

 

860

container classes, 726

98-106, 111

 

const modifier, 456

containers, 415-419

switch statement,

 

const objects, 362-363

adapters, 731-732

107-111

 

constants

algorithms, 755, 758-759

loops

 

C-strings, 292-293

associative containers,

decisions, 93

 

character constants, 43-44

727, 729, 771

do loop, 91-93

 

const keyword, 51, 252,

keys, 729-730, 771

for loop, 78-86

 

860

maps, 729-730, 771,

how they work, 78

 

#define directive, 51

775-778

indentation, 83

 

floating-point constants, 50

multimaps, 730, 771,

iterations, 80-81

 

integer constants, 41

775-778

multiple statements,

 

passing to functions,

multisets, 730, 771-775

81-82

 

167-169

sets, 729-730, 771-775

selecting which loop to

 

pointers, 435-436, 442-443

function objects, 794

use, 93

 

set_color() function, 884

iterators, 756

while loop, 86-90

 

set_fill_style() function,

member functions,

uses, 76

 

884

730-731

conversion constructors,

 

string constants, 34-35

priority queues, 732

347

 

constructors

queues, 732

conversion operator,

 

automatic initialization,

sequence containers,

347-348

 

229

727-729

conversions

 

capabilities, 231

arrays, 728

data type conversions, 320,

 

conversion constructors,

deques, 728-729

344

 

347

lists, 728-729

between basic types,

 

copy constructors,

vectors, 728

344-345

 

238-240, 533, 536

sequential containers, 743,

between basic types

 

invoking, 538

751

and user-defined

 

out of memory message,

deques, 750

types, 347-348

 

538

lists, 747-749

C-strings and string

 

overloading, 536-537,

vectors, 743-747

objects, 348-350

 

539-546

 

 

 

 

 

 

 

 

dec manipulator

989

 

 

 

explicit keyword,

D

enumerations

 

360-362

declarations, 149

 

data

 

objects of different

definition, 148

 

classes, 350-356

global data, 11-13

examples, 148-155

 

preventing, 360-362

local data, 11

integer values, 155

 

between user-defined

streams, 34

limitations, 155

 

types and basic types,

data access with itera-

objects, 226-227

 

345-347

tors, 759-760

unsigned long data type,

 

variables, 56-60

data conversions

651

 

guidelines for using, 360

guidelines for using, 360

user-defined data types

 

limitations, 358

limitations, 358

class templates,

 

selecting best method of,

data encapsulation, 14

698-701

 

357

data flow. See streams

converting basic to

 

copy algorithm, 733, 897

data hiding, 14, 218

user-defined, 347

 

copy_backward

friend functions, 522

converting user-defined

 

algorithm, 898

problems with, 520

to basic, 347-348

 

copy constructor, 238-240,

data members (classes),

converting to basic

 

533, 536

219

types, 345-347

 

invoking, 538

initialization, 229-230

variables

 

out of memory message,

member functions,

casts, 58-60

 

538

219-220

converting, 56-60

 

overloading, 536-537,

public versus private, 220

overview, 54

 

539-546

static, 249-252

type safety, 60

 

prohibiting copying, 539

data storage. See linked

unsigned data types,

 

temporary objects, 538

lists

55-56

 

copy() member function,

data structures, 726

debugging

 

309

data type conversions,

C++Builder programs,

 

copying

320, 344

878-879

 

C-strings, 295-296,

between basic types,

breakpoints, 879-880

 

454-455

344-345

single-stepping, 879

 

prohibiting, 539

between basic types and

tracing into functions,

 

stream classes, 576

user-defined types,

879

 

count = gcount() member

347-348

watching variables, 879

 

function, 575

C-strings and string

loop animation, 84

 

count algorithm, 732, 736,

objects, 348-350

pointers, 492-493

 

897

explicit keyword, 360-362

Visual C++ programs

 

count_if algorithm, 897

objects of different classes,

breakpoints, 870

 

cout, 33-34, 576, 616-618

350-356

overview, 868-869

 

.cpp filename extension,

preventing, 360-362

single-stepping, 869

 

30

selecting best method of,

stepping into functions,

 

CPP files, 831

357

869

 

ctor. See constructors

between user-defined types

watching variables, 869

 

curly brackets in func-

and basic types, 345-347

Watch windows, 84

 

tions, 31

data types

dec flag, 571

 

 

arrays, 264, 290

dec manipulator, 572

 

 

char data type, 290

 

 

 

creating, 21

 

 

 

 

 

 

990

decision statements

 

 

 

 

 

decision statements

member functions outside

diagrams

 

 

break statement, 109,

classes, 236

activity diagrams, 808,

 

119-121

namespaces, 647-649

815-816

 

continue statement,

objects, 221

class diagrams

 

121-123

pointers, 434-435

associations, 357-358

 

goto statement, 123

string objects, 302-304

inheritance, 376

 

how they work, 93-94

structures, 133-135

navigability arrows,

 

if statement, 94-97

variables, 38-39, 47, 54

358

 

if...else statement, 98-106,

definitions

uses, 357

 

111

functions, 164, 166

interaction diagrams, 808

 

switch statement, 107-111

body, 165-166

object diagrams, 539-540

 

decision trees, 103

declarator, 165-166

state diagrams, 490-492,

 

decisions in loops, 93

library functions, 166

675

 

declarations

using in place of decla-

use case diagrams,

 

enumerations, 149

ration, 166-167

806-807

 

functions, 164, 166-167

static class data, 251-252

directives

 

static class data, 251-252

variables, 40

#define directive, 51

 

structures, 133

delete keyword, 861

definition, 35

 

syntax, 133-134

delete operator and

#include directive, 35, 67

 

use of, 134-135

memory management,

pragma, 773

 

variables, 40

461-462

preprocessor directives,

 

declarator (functions),

deques, 728-729, 750

35-36, 51, 67

 

165-166

dereferencing pointers,

using directive, 36

 

declaring

438, 465

directories in multifile

 

aggregates, 830-831

derived classes, 20,

programs, 637

 

attributes (classes), 830

372-376, 380-382, 387

disk file I/O

 

classes, 830

The Design and Evolution

binary I/O, 589-591

 

functions with array argu-

of C++, 979

char strings with embed-

 

ments, 275-276

destructors, 232-233,

ded blanks, 586-588

 

decrement operator, 65,

529-530, 532

character I/O, 588-589

 

320

base classes, 517-518

error handling, 601

 

default copy constructor,

exceptions, 719

analyzing errors,

 

238-240

virtual destructors,

602-603

 

default keyword, 110-111,

517-518

reacting to errors,

 

861

warnings, 538

601-602

 

defaults

development processes

formatted file I/O, 583-586

 

access specifiers, 398

beginning development,

member functions,

 

arguments (functions),

802

604-616

 

197-199

inheritance, 420-421

object I/O, 591-596

 

#define directive, 51

modern processes, 803

overloaded extraction and

 

defining

object-oriented program-

insertion operators,

 

arrays, 265-266, 271

ming, 803

618-620

 

arrays of structures, 278

Unified Process, 804-805

streams, 583

 

classes, 218

waterfall process, 802-803

diskCount() member func-

 

functions with array argu-

 

tion, 604

 

ments, 276

 

 

 

 

 

 

 

 

errors

991

 

 

 

diskIn() member function,

Effective C++, 978

exceptions

 

604-606

elements (arrays)

arguments, 714-717

 

diskOut() member func-

accessing, 267, 441-442

catch blocks, 705, 709,

 

tion, 604-606

averaging, 267-268

712

 

display() function, 275,

multidimensional arrays,

class libraries, 719

 

472-473

271

destructors, 719

 

displaying linked list con-

overview, 265-267

examples, 706-709,

 

tents, 472-473

sorting, 448-451

712-714

 

Divide Error error mes-

structures, 278

extracting data from

 

sage, 121

Ellis, Margaret, 978

exception objects, 717

 

division (/) operator, 60

else keyword, 861

function nesting, 718

 

do keyword, 861

empty() member func-

handling, 719-720

 

do loop, 91-93

tion, 731

multiple exceptions,

 

dot (.) operator, 136-137,

encapsulation

710-712

 

360

definition, 14

purpose of, 703-704

 

double keyword, 861

problems with, 520

sequence of events,

 

double variable, 49-50

end() member function,

709-710

 

draw_circle() function,

731

syntax, 704-706

 

883

endl manipulator, 41-42,

throwing, 705, 708

 

draw_line() function, 883

571-572

tips for when not to use,

 

draw_pyramid() function,

ends manipulator, 572

719

 

883

enum keyword, 149, 861

try blocks, 705, 709

 

draw_rectangle() func-

enumerations

uses, 682, 703

 

tion, 883

declarations, 149

functions

 

dynamic binding, 509

definition, 148

longjmp() function, 704

 

dynamic cast operator,

examples, 148-155

setjmp() function, 704

 

553-556

integer values, 155

error messages

 

dynamic keyword, 861

limitations, 155

access violation error mes-

 

dynamic type information

eofbit flag, 577, 587

sage, 493

 

(classes), 553

equal algorithm, 732, 897

Divide Error error mes-

 

dynamic cast operator,

equal_range algorithm,

sage, 121

 

553-556

902

null pointer assignment

 

typeid operator, 556-557

equal to (==) relational

error message, 493

 

 

operator, 77

page fault error message,

 

 

erase() member function

493

 

E

lists, 748

stack is empty error mes-

 

string class, 307

sage, 384

 

early binding, 509

vectors, 746-747

unidentifed identifier error

 

Ericson, 23

message, 66

 

Eckel, Bruce, 978

 

error flag functions, 578

unknown variable error

 

editing

 

error handling

message, 200

 

data of const objects,

 

disk file I/O, 601

error-status flags,

 

362-363

 

analyzing errors,

577-578, 587-588

 

global data, 12-13

 

602-603

errors

 

string objects, 306-307

 

reacting to errors,

cerr, 577

 

 

 

 

601-602

Microsoft Visual C++,

 

 

 

865-866

 

 

 

 

 

992

errors

 

 

 

 

 

streams

exit() function, 97

member functions,

 

 

checking, 580-583

explicit keyword,

604-616

 

error-status flags,

360-362, 861

object I/O, 591-596

 

577-578, 587-588

exponential notation, 50

overloaded extraction

 

inputting numbers,

export keyword, 861

and insertion opera-

 

578-579

expressions, 47, 101-102

tors, 618-620

 

inputting strings and

extended ASCII character

streams, 583

 

characters, 580

set, 121

executable files, 30

 

no-input input, 579-580

extensions (filenames)

extensions

 

too many characters,

C++Builder, 872

C++Builder, 872

 

579

cpp, 30

cpp, 30

 

escape sequences, 35,

exe, 30

exe, 30

 

44-45

H, 35

H, 35

 

exception classes

Visual C++, 864

Visual C++, 864

 

bad alloc class, 717-718

extern keyword, 861

formatted file I/O, 583

 

xalloc class, 718

external variables. See

header files, 35-36, 54,

 

exception handlers. See

global variables

66-67

 

catch blocks

extraction operator,

library files, 66-67

 

exceptions

46-47, 569, 585, 616-620

opening, 596-597

 

arguments, 714-717

 

source files, 30

 

catch blocks, 705, 709,

 

fill algorithm, 733, 898

 

712

F

fill_n algorithm, 898

 

class libraries, 719

fill() member function,

 

destructors, 719

failbit flag, 577

573

 

examples, 706-709,

The Final Draft

 

false keyword, 861

 

712-714

Information Standard

 

Fibonacci series, 89-90

 

extracting data from

(FDIS) for the C++

 

file pointers, 597-599

 

exception objects, 717

Programming Language,

 

filename extensions

 

function nesting, 718

978

 

C++Builder, 872

 

handling, 719-720

find algorithm, 732,

 

cpp, 30

 

multiple exceptions,

735-736, 896

 

exe, 30

 

710-712

find_first_not_of() mem-

 

H, 35

 

purpose of, 703-704

ber function, 306

 

Visual C++, 864

 

sequence of events,

find_first_of() member

 

files

 

709-710

function, 306

 

closing, 591

 

syntax, 704-706

find_if algorithm, 896

 

disk file I/O

 

throwing, 705, 708

find_last_not_of() mem-

 

binary I/O, 589-591

 

tips for when not to use,

ber function, 306

 

char strings with

 

719

find_last_of() member

 

embedded blanks,

 

try blocks, 705, 709

function, 306

 

586-588

 

uses, 682, 703

find() member function,

 

character I/O, 588-589

 

exe filename extension,

306

 

error handling,

 

30

finding string objects,

 

601-603

 

executable files, 30

305-306

 

formatted file I/O,

 

exercise solution key,

fixed flag, 571

 

583-586

 

916-974

 

 

 

 

 

 

 

 

 

 

functions

993

 

 

 

flags

fstream class, 583, 596

library functions, 166

 

error-status flags, 577-578,

function libraries, 634

using in place of decla-

 

587-588

function objects, 786

ration, 166-167

 

formatting flags, 570-572

algorithms, 739

display() function, 275,

 

ios flags, 273

modifying container

472-473

 

float keyword, 861

behavior, 794

error flag functions, 578

 

float variable, 48-49

predefined function

examples, 162-163

 

floating point variables

objects, 786-789

exit() function, 97

 

double, 49-50

writing, 789-794

friend functions, 520-522

 

float, 48-49

functions

controversies surround-

 

long double, 49-50

arguments, 31, 66

ing, 522

 

overview, 48

arrays, 274-276,

examples, 522-526

 

floating-point constants,

446-448

functional notation,

 

50

C-strings, 453-454

526-528

 

flow of data. See streams

const function argu-

getche() function, 100-102

 

flush manipulator, 572

ments, 208-209, 254

history of, 10-11

 

flush() member function,

constants, 167-169

illustration, 165

 

575

default arguments,

inline functions, 195-197,

 

for_each algorithm, 733,

197-199

209

 

742, 896

naming, 176

inter-file functions, 641

 

for keyword, 861

objects, 233-234, 237

invoking, 162, 164, 166

 

for loops, 78-86

overloaded functions,

ios functions, 573-574

 

foreign languages and

189-193

library functions, 65-67,

 

wchar t variable, 43

parameters, 169

166

 

formatted file I/O,

passing, 167-176

atoi() library function,

 

583-586

passing by pointers,

580

 

formatting flags, 570-572

444-448

malloc() libary

 

formatting numbers in

passing by reference,

function, 461

 

arrays, 272-273

443-444

pointers, 456

 

FORTRAN, 10

references, 182-188

rand() library function,

 

forward iterators,

structures, 171-176

289

 

733-734, 754-755

values, 170-171

srand() library

 

Fowler, Martin, 979

variables, 169-170

function, 289

 

fread() member function,

braces, 31

strcat() library

 

583

bsort() function, 450-451

function, 302

 

friend classes, 528-529

calling, 162, 164, 166, 276

strcmp() library

 

friend functions, 520-522

console functions, 883-885

function, 337, 479

 

controversies surrounding,

curly brackets, 31

strcpy() library

 

522

declarations, 164, 166-167

function, 296, 456

 

examples, 522-526

declaring with array argu-

strlen() library

 

functional notation,

ments, 275-276

function, 296

 

526-528

defining with array argu-

longjmp() function, 704

 

friend keyword, 521, 526,

ments, 276

macros, 689

 

861

definition, 164, 166

main() function, 31-32,

 

front() member function,

body, 165-166

167

 

748-749

declarator, 165-166

 

 

 

 

 

 

994

functions

 

 

 

 

 

member functions, 31,

fill() member function,

p = precision() member

 

 

387-388

573

function, 573

 

append() member

find_first_not_of()

parse() member

 

function, 307

member function, 306

function, 480

 

at() member function,

find_first_of() member

peek() member

 

309

function, 306

function, 575

 

back() member

find_last_not_of()

pointers, 505-507

 

function, 745-746

member function, 306

pop back() member

 

begin() member

find_last_of() member

function, 745-746

 

function, 731

function, 306

pop front() member

 

calling, 221-223

find() member function,

function, 748-749

 

capacity() member

306

pop() member function,

 

function, 310, 750

flush() member

281

 

ch = fill() member

function, 575

pos = tellg() member

 

function, 573

fread() member

function, 575

 

class declarations,

function, 583

pos = tellp() member

 

220-221

front() member

function, 576

 

close() member

function, 748-749

precision() member

 

function, 591

fwrite() member

function, 573

 

compare() member

function, 583

public versus private,

 

function, 307-308

get() member function,

220

 

const, 252-254

293-294, 574-575,

push back() member

 

constructors, 227-232,

588-589

function, 744

 

234-235

getline() member

push front() member

 

containers, 730-731

function, 304-305,

function, 748

 

copy() member

575, 586

push() member

 

function, 309

ignore() member

function, 281-282

 

count = gcount()

function, 575

put() member function,

 

member function, 575

insert() member

575, 588

 

defining outside

function, 307,

putback() member

 

classes, 236

746-748

function, 575

 

definition, 14

length() member

rbegin() member

 

destructors, 232-233

function, 310

function, 731

 

disk file I/O, 604-616

lower bound() member

rdbuf() member

 

diskCount() member

function, 774-775

function, 589

 

function, 604

max size() member

read() member

 

diskIn() member

function, 310, 731,

function, 575, 593

 

function, 604-606

745

rend() member

 

diskOut() member

merge() member

function, 731

 

function, 604-606

function, 749

replace() member

 

empty() member

messages, 223

function, 307

 

function, 731

multiple inheritance,

reverse() member

 

end() member function,

404-408

function, 749

 

731

open() member

rfind() member

 

erase() member

function, 596-597

function, 306

 

function, 307,

overriding, 382-383

 

 

745-748

overview, 219-220