iostream, 33–34, 289, 1064, 1067

text files, 287–288

reading, 292–298

writing to, 288–292

file_it() function, 408

fill characters, 1081–1082

fill() function, 1081, 1294, 1299

array objects, 357

fill.cpp, 1082

filling arrays, 326–327

fill_array() function, 325–327, 331

fill_n() function, 1294, 1299

fin.clear() function, 1121

final, 1183–1184

find() function, 1287–1289

find() method, 960–961, 965, 1260–1261, 1283

finding, 1260

find_arr() function, 994

find_end() function, 1287–1290

find_first_not_of() method, 961, 1262–1263

find_first_of() function, 1287, 1290

find_first_of() method, 961, 1262

find_if() function, 1287–1289

find_last_not_of() method, 1263

find_last_of() method, 961, 1262

firstref.cpp, 383

fixed manipulator, 1091

flags, 1084

flags, setting, 1083

float data type, 94–96

floating points, display precision, 1082–1087, 1090

floating-point data types, default behavior, 1076

floating-point numbers, 92

advantages/disadvantages, 96–97

constants, 96

decimal-point notation, 92

double data type, 94–96

E notation, 92–93

float data type, 94–96

long double data type, 94–96

floatnum.cpp, 95

fltadd.cpp, 96

flush() function, 1076

flushing buffers, 1063

for loops

blocks, 212–214

body, 196–197

combination assignment operators, 211–212

comma operator, 214–217

example, 214–216

precedence, 217

compared to while loops, 227–228

decrement operator (--), 207–208

pointers, 210–211

postfixing, 209–210

prefixing, 209–210

example, 196–197

expressions, 200–202

compared to statements, 201

declaration-statement expressions, 202

factorials, calculating, 203–205

increment operator (++), 207–208

pointers, 210–211

postfixing, 209–210

prefixing, 209–210

initialization, 196–197

loop test, 196–197

loop updates, 196–198, 205–206

nested loops, 244–249

nonexpressions, 202

range-based, 1161

sequence points, 208–209

side effects, 201, 208–209

step size, 205–206

strings, 206–207

syntax, 197–199

for statements, declaration-statement expressions, 203

for-init-statement, 203

forcing moves, 1173–1174, 1177–1178

forever loops, 232

forloop.cpp, 196

formal arguments, 314

formatted input functions, 1094

formatting

if else statement, 257–258

incore, 1142–1145

source code, 39

source code style, 40

tokens, 39

white space, 39

with cout, 1076–1077

field width display, 1080–1081

fill characters, 1081–1082

floating-point display precision, 1082–1083

manipulators, 1090–1091

number base display, 1078–1079

trailing zeros/decimal points, 1083–1090

with iomanip header file manipulators, 1091

formore.cpp, 203–204

forstr1.cpp, 206

forstr2.cpp, 215

forward declaration, 884

forward iterators, 998

for_each() function, 987–988, 1287–1289

for_each() STL function, 991

fowl.cpp, 973

free memory storage, 182

free store, 454

free store (memory), 182–183

freeing memory, delete operator, 163–164

friend classes, 578–580, 877–888

base-class friends, accessing, 801–804

compared to class member functions, 886

templates, 858

bound template friend functions, 861–864

non-template friend functions, 858–861

unbound template friend functions, 864–865

Tv class example, 878–879, 883

tv.cpp, 880–882

tv.h, 879–880

tvfm.h, 885–886

use_tv.cpp, 882

friend functions, 578–580

creating, 579–580

type conversion, 618–621

friend keyword, 579–580

friend member functions, 578–580, 883

compared to friend classes, 886

example, 885–886

forward declaration, 884

shared friends, 888–889

frnd2tmp.cpp, 860–861

front insert iterators, 1005–1007

front() method, 1278

funadap.cpp, 1034–1035

function idioms, arrays, 331

function objects, 1026

Перейти на страницу:

Все книги серии Developer's Library

Похожие книги