< Previous | Contents | Next >

T

tab (\t), 23

Taking Damage program, 177–179

Talk() member function,

Critter class, 279

tellStory()function, 183

terminating statements, 9

test expression, for loop, 82 text, displaying through standard

output, 8–9

this pointer, 326

Tic-Tac-Toe 2.0 game, 248 Tic-Tac-Toe Board program,

103–105

Tic-Tac-Toe game, 203–217

announceWinner()function, 217

askNumber()function, 209

askYesNo()function, 208–209

computerMove()function, 213–216

creating list of functions, 205

displayBoard()function, 210–211

humanMove()function, 213

humanPiece()function, 209–210

instructions()function, 208

isLegal()function, 212–213

main()function, 207–208

opponent()function, 210

pseudocode, 204

representing data, 204–205

setting up, 205–207

winner()function, 211–212

toupper() function, 155

triple() function, 176

Triple program, 174–176

true values

interpreting, 43

testing, 42–43

truth, 39–40

two-dimensional array, 103

type casting, 372 types

See also classes

defining new names, 23 fundamental, 18

modifiers, 18–19

understanding which to use, 24