< Previous | Contents | Next >

M

Mad Lib game, 180183

askNumber()function, 182

askText()function, 182

main()function, 181182

setting up, 181

tellStory()function, 183

main() function, 8, 181182

Blackjack game, 376377 creating string objects, 91 Critter Caretaker game,

280281

declaring vectors, 119

defined, 35

Game Lobby program, 324325

initializing variables and constants, 143

looping, 55

returning value from, 10 Tic-Tac-Toe game, 207208

map STL container, 139 member access levels, class,

264269

defining accessor member functions, 267268 defining constant member functions, 268269

private, 267

Private Critter program, 264266

public, 266

member access operator, 230 member functions, 87, 110

See also names of specic member functions

calling, 260

declaring, 258

defining, 258259, 282

inlining, 282

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

259

member-wise copying, 309, 326

memory, 24, 224, 248

memory leak, 301303, 326 Menu Chooser program,

5253

modifiers, type, 1819

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

103106, 111

creating, 105

indexing, 105106

Tic-Tac-Toe Board program, 103105

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