< Previous | Contents | Next >

M

Mad Lib game, 180–183

askNumber()function, 182

askText()function, 182

main()function, 181–182

setting up, 181

tellStory()function, 183

main() function, 8, 181–182

Blackjack game, 376–377 creating string objects, 91 Critter Caretaker game,

280–281

declaring vectors, 119

defined, 35

Game Lobby program, 324–325

initializing variables and constants, 143

looping, 55

returning value from, 10 Tic-Tac-Toe game, 207–208

map STL container, 139 member access levels, class,

264–269

defining accessor member functions, 267–268 defining constant member functions, 268–269

private, 267

Private Critter program, 264–266

public, 266

member access operator, 230 member functions, 87, 110

See also names of specific member functions

calling, 260

declaring, 258

defining, 258–259, 282

inlining, 282

member initializers, 263, 282 member selection operator (.), 88,

259

member-wise copying, 309, 326

memory, 24, 224, 248

memory leak, 301–303, 326 Menu Chooser program,

52–53

modifiers, type, 18–19

modulus operator (%), 15, 72 multidimensional arrays,

103–106, 111

creating, 105

indexing, 105–106

Tic-Tac-Toe Board program, 103–105

multimap STL container, 139 multiple inheritance, 380 multiplication (*) operator, 14 multiset STL container, 139 mutable data members, 284