c++ homework help assignment 11

Assignment 11

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

Modify Assignment 9 (or 7, or 5, or 4) to:

  1. Use a vector, not an array/list, to store and retrieve movies.
  2. Add an overloaded less than (<) operator to the Movie class to compare movies, based on the movie title.
  3. Use the STL sort algorithm to sort the vector (by title using the operator<).

I have attached assignment 7 and can be opened with microsoft visual studio

0

2

00000

0

0

2

0000

1 1 1

7

5

00000

02

0000

2 2 2

800000

9

8

0000

3 3 4

8

00000

8

4

700000

15 4 44

: Episode I – The Phantom Menace

Fox

99

000000

4

46

2

0000

12 5

Star Wars Fox

7

000

9

007

400000

6 99

WB

2

000000

99

900000

8 7 19

2

0

0000

6

7

00000

24 8

00000

554

00000

40 9 76

BV

00

5812

0000

9 10 18

BV

4

00000

777

8800000

19 11 34

3

BV

200000

0

0

00000

10 12 16

200000

0

200000

57 13

700000

06

00000

14 58

: Revenge of the Fallen

0000

1

70

0000

33 15

WB

8100000

9

00000

4 16 3

BV

0000

32

00000

23 17 30

Fox

577

000

32 18 46

2003

900000

8

905

0000

6 19 8

Sony 2004

585825

00000

42 20

2004

0000

782

0

100000

21

Uni.

00000

067947

25 22 25

P/DW 2011

700000

0543

0000

5 23 7

NL 2002

00000

5

0000

22 24 24

Sony

0900000

5

03

000

27 25 27

BV 2010

00000

0

13 26 12

Par.

94

9

700000

58 27 83

P/DW 2007

9944

200000

38 28 43

Transformers P/DW 2007

46

500000

54 29 69

Par.

0000

12101

800000

82 30 132

WB

0000

575550

16 31 14

Par. 2008

01119

500000

41 32 45

NL 2001

1500000

5

50

000000

31 33 26

Par. 2010

00000

31

500000

69 34 100

Fox 2002

00000

676740

00000

63 35 88

BV 2007

0000

4

25

00000

17 36 15

Fox

100000

800000

119 37

Fox

00000

00000

37 38 37

BV 2003

0000

4

18

900000

62 39 82

Sony 2012

300000

7 40 5

WB 2012

00000

733

00000

14 41 10

WB 2009

00000

9

0000

21 42 20

Saga: Eclipse

2010

1

000000

55 43 67

Sum. 2009

34

0000

53 44 64

WB 2010

98

5

18 45 13

BV

0000

300000

59 46 72

BV 2009

0000

00000

51 47 52

WB 2010

00000

6

000000

35 48 33

2012

737

00000

34 49 32

WB 2007

00000

8

00000

20 50 17

BV 2005

00000

7

57

300000

48 51 50

Fox

00000

900000

96 52

WB 2005

26 53 22

BV 2001

587423

900000

86 54

Fox

761243

118 55 241

Reloaded

WB 2003

00000

6

600000

49 56 48

Sum. 2011

00000

7

52 57 55

Uni. 2004

00000

400000

58 160

WB 2009

500000

03

123 59 243

Shrek DW 2001

0000

66

1

00000

60

Sony 2012

0000

0663

200000

47 61 39

WB 2002

482

29 62 21

BV 2004

00000

1092

65 63 73

Uni. 2000

100000

25

0

64 0

Uni.

700000

00000

122 65 199

Par. 2009

700000

174 66

WB 2007

0000

010

000000

81 67 93

WB 2009

0

68 0

WB 2011

305

000000

83 69 95

Uni. 2010

00000

3985

95 70 110

WB

00000

924

71 311

Fox 2006

6

8

600000

84 72 96

Sony

700000 79 73 89

WB 2004

5

69

00000

39 74 29

Par.

900000

971

800000

75

BV 1999

000000

852

00000

111 76 157

BV 2006

000000

08

2

900000

126 77 188

Uni. 2003

600000

829261

00000

113 78

WB 1996

4

800000

108 79 140

Fat Greek Wedding

2002

700000

8

300000

193 80

BV 2011

3900000

11 81 6

P/DW 2010

00000

7

87

900000

46 82 36

busters

291600000

3

4

0 303 83 0

BV 2012

00000

83

97 84

Par. 1984

400000

760

0 261 85 0

: The Last Stand

Fox 2006

400000

6

2

127 86 180

Par. 2005

0354

77 87 78

Fox 2000

600000

63

2

000000

147 88 228

WB

300000

906145

140 89

Uni. 1997

00000

086679

71 90 71

BV 2002

160 91 268

Sony 2008

400000

67 92 68

Uni. 2007

800000

00000

93 192

2

NL 2001

164

0000

94 419

BV 2008

00000

808164

500000

101 95 106

: Book of Secrets

BV 2007

400000

964

2

00000 130 96 159

: The Squeakquel

Fox 2009

100000

12

00000

97

Fox 1993 4

00000

9

3

100000

141 98 184

BV

000000

967620

000000

150 99 214

Uni. 2012

00000

600000

91 100 94

Uni. 2005

00000

0000

90 101 90

Ghost Par. 1990

06

100000

104 102 112

P/DW 2010

107 103 120

Sony 2006

138

00000

45 104 31

BV

100000

19

105 105 114

Alvin and the Chipmunks Fox 2007

74

205 106

DW

800000

540909

300000

115 107

3: Europe’s Most

P/DW 2012 742100000

9

2

700000

50 108 35

P/DW 2008

591

300000

64 109 62

II

Par. 2000

000000

92 110 91

Fox 2003

94

111 237

Uni. 2012

222 112 383

NL 2002

889

0 295 113 0

300 WB 2007

100000

9

00000

132 114 149

Uni.

100000

179 115 291

Uni. 2011

8

75

416300000 66

63

Par. 2011

903

56 117 40

NL 2005

0 317 118 0

WB 2009

100 119 97

WB 2005

184 120 293

WB 2005

120 121

BV 2007

654

300000

70 122 60

NL 1999

000000

267 123 457

1991

800000

5

315000000 102 124 98

Returns

Uni. 2001

000000

0

5

144

170

BV 1998

00000

00000

89 126 81

BV 2010

389900000 78 127 70

Returns

WB 2006

100000

171 128 240

76459

165 129 219

BV 2001

200000

00000

130 143

P/DW 2009

526

200000

261

WB 2006

175 132 255

Par. 1989

121 133 122

: Dawn of the

s

Fox 2009

73705

690100000 28 134 11

Fox 2006

61 135 49

Madagascar DW 2005

700000

5521

100000

98

87

Twilight Sum. 2008

9854

170 137 225

Toy Story BV

000000

203 138 292

BV 2011

396

87 139 74

Sony 2002

00000

139 140 141

Par. 1978

000000

169 141 213

BV 2012

00000

142 142 139

DW 2000

705

129 143 128

WB 2011

00000

94 144 79

Fox 2004

357500000 93 145 77

Fox 2005

117 146 109

Dwarfs

0

5

0 0 147 0

1990

200000

151 148

WB 1995

233 149 333

WB 1993

000000

191 150

WB 2001

7150

133 151 131

WB 2004

5

274 152

Fox 2007

100000

00000

99 153 85

Par. 2000

1707

185 154 239

WB 2000

00000

245 155 343

BV 2012

0

156 0

Uni. 1997

281 157 418

Uni. 2001

192 158 248

Par. 2011

134 159 130

Mission: Impossible Par. 1996

128 160 124

Fox 2001

202

P/DW 2008

75 162 56

Fox 2009

187 163 234

Par. 1984

238 164 331

Par. 1986

800000

209 165 273

Sony 2005

555

195 166 246

Sony 2012

68 167 51

BV 1990

400000

268

125

115

BV

169 271

Fox 2009

21

157 170 165

Col.

0

0 0 171 0

Fox 2011 481800000

116 172 102

Par. 2011

173 238

Sony 2010

206 174

Fox 1998

1

190 175 233

Ice Age Fox 2002

177 176 210

Uni. 2004

0000

309 177 441

Par. 1986

00000

00000

246 178 329

Uni. 1995

179 265

Fox 1992

5

207 180 257

NL 2003

0 442 181 0

National Treasure BV 2004

223 182 279

Sony 1997

00000

262 183 355

MGM 1988

212 184 264

BV 2010

166 185 173

The Matrix WB 1999

124 186 108

Par. 2010

00000

0 369 187 0

BV 1999

136 188 121

Uni. 2001

266 189 351

2002

276 190 376

BV 2011

0 480 191 0

Uni. 2011

310 192 424

Sony 2008

80 193 59

BV 2007

600000

0 365 194 0

BV

0

0 0 195 0

Sony 2006

76 196 54

Uni. 2000

5

242 197 301

2012 Sony 2009

44 198 23

: Prince of Thieves

WB 1991 390500000

225000000 172 199 179

P/DW 2011

60 200 38

MGM 2001

2268

217 201 254

DW 2002 352100000

1

216 202 250

BV 2009

153400000 260 203 328

Sony 2006

204 348

Sony 1999

0 408 205 0

WB 2010

4888

109 206 92

WB 1992

339 207 462

BV 1998

400000

199 208 222

Sony 2010

333 209 449

2012

00000

161 210 142

BV 1998 0

646

0 0 211 0

Fox 2012

30 212 9

MGM 2002

145 213 127

DW 2004

196 214 212

Fox 1965 0

0 0 215 0

Par. 1993

67

334 216 443

Par. 2005 0

0 0 217 0

X-Men Fox 2000

717

296 218 370

Mira. 2000

000000

1

321 219 420

Par. 1987

258 220 302

BV 1988

70

243

283

Uni. 1973 0

0 0 222 0

DW 2000

304 223 377

The Mummy Uni. 1999

900000

5488

153 224 138

Uni. 2012

381

168 225 154

Uni. 2009

5

200 226 206

P/DW 2006

234 227 267

Fox 2005

241 228 276

Fox 2008

39

293 229 352

Sony 1996

2

329 230 423

Par. 1987

6

291 231 342

WB 2002

324 232 415

WB 1984 0

3102

0 0 233 0

2008

58

155 234 137

Par. 1999

57509

272 235

TriS 1985

287 236 340

WB 2003

112

143 237 118

Par. 2009

282 238 334

P/DW 2011

88 239 66

Uni. 2007

0 447 240 0

Uni. 2012

300000

146 241 116

Sony 1997

265 242 297

Uni. 2010

269 243 307

P/DW 2010

252 244 281

Sony 2012

00000

227 245 226

Sony 2006 0

0 0 246 0

WB 2008

247 417

WB 1989

0 421 248 0

Fox 2011

600000

213 249 208

Sony 2009 0

0 0 250 0

Fox 1994

900000

181 251 168

BV 2002

331 252 404

2

Uni. 2001

03595

314 253 354

Fox 2009

0 426 254 0

Dis.

0 457 255 0

BV 1994 0

0 0 256 0

Fox 2004

225 257 217

WB 1992

177000000 253 258 274

Uni. 2001

0 493 259 0

Fox 1998

300 260 337

Uni. 2008

73 261 47

Fox 2011 484600000

19809

112 262 86

2007

5265

0

263 0

Fox 2008

0 391 264 0

Sony 2011

85 265 57

2002

266 379

Dis.

0 498 267 0

BV 2008

0000

278000000 152 268 119

Uni. 1978 0

0 0 269 0

BV 1995

226 270 216

Col. 1992

78

271 471

FoxS 2008

928

182 272 162

Rush Hour NL 1998

00000

387 273 465

1999

376 274 452

Par. 1998

4

221 275 204

NL 2007

359 276 429

TriS 1989

294 277 320

Sony 1999

290 278 312

Fox 2012

183 279 163

BV 1992

0

0

280 0

WB 2003

8

148 281 113

BV 2002 0

0 0 282 0

Wein. 2010

156 283 125

Fox 2003 0

4

0 0 284 0

Sony 2003

330 285 385

Orion 1986 0

0 0 286 0

Sony 2012

0

287 0

Mira. 1997

0 429 288 0

BV 2009

300000

251 289 251

Dinosaur BV 2000

220 290 195

SonR 2006

398 291 475

WB 1999

150000000 315 292 338

BV 1996 309500000

92681

271 293 284

Sony 1998

242700000 180 294 152

BV 1996

257 295 259

SonR 2003 0

0 0 296 0

BV 2005

263 297 270

WB 2012

0 424 298 0

NL 1990

0 509 299 0

Uni. 1998

0 507 300 0

Par.

385 301 448

Uni. 2008

348 302 400

Fox 2007

403

176 303 144

Wanted Uni. 2008

206900000 231 304 209

Superman WB 1978

289 305 295

BV 1996

236 306 220

Par. 2006

167 307 136

WB 2004

400000

106 308 75

Sony 2009

110 309 80

Fox 2011

229 310 203

BV 2003 0

0 0 311 0

WB 2006

305 312 316

Hulk Uni. 2003

383 313 439

Col. 1977

278 314 287

Fox 2002

208 315 175

Fox 2007

307 316 319

Par. 2010

259 317 247

Par. 2001

143500000 326 318 347

Orion 1991

332 319 357

BV 1989

0 436 320 0

Uni. 1994

208

230 321 197

WB 1998

03

316 322 324

WB 2008

416 323 474

Uni. 2007

343 324 375

DW 1999

210 325 176

Par. 1982 0

0 0 326 0

DW 2002

375 327 421

Uni. 1996

328 328 344

Fox 2006

352 329 389

Fox 2005

356 330 392

Par. 1988

308 331 310

2000

0 470 332 0

Par. 2010

299 333 294

IV

1985

285 334 285

BV 2007

232 335 194

Uni. 2013 0

0 0 336 0

Par. 2008

206400000 237 337 211

BV 2002 0

0 0 338 0

Wein. 2012

0 455 339 0

NL 1994

378 340 422

Uni. 2003

402 341 450

Sony 1997

292 342 286

Par. 2011

357 343 390

MGM 1999

204 344 167

Uni. 1977 0

0 0 345 0

TriS 1993

423 346 473

P/DW 2007 287600000

313 347 309

Fox 2012

084

163 348 123

Uni. 2012 208100000

0 490 349 0

Sony 2002 0

0 0 350 0

Par. 1998

345 351 372

Uni. 2000

362 352 395

WB 2004

201 353 161

WB 2009

189 354 147

Sony 2000 264100000

346 355 371

MGM 1997

239 356 207

UA 1982 0

0 0 357 0

2012 0

0 0 358 0

Sony 2009

389 359 426

Fox 2006

248 360 218

Sony 2003

142000000 340 361 358

2000

0 492 362 0

MGM 1996 0

0 0 363 0

Col. 1991 0

0 0 364 0

BV 1987 0

0 0 365 0

Par. 2011 245400000

121900000 382 366 416

Uni. 2000 0

0 0 367 0

Fox 2012

74 368 41

Par. 1994 215900000

0 456 369 0

Par. 1990

0 516 370 0

WB 1992

289000000 159 371 111

Par. 1992 0

0 0 372 0

Uni. 2002

0 465 373 0

Sony 2007 0

0 0 374 0

Fox 1994

219 375 172

Sony 2004 0

0 0 376 0

BV 1998

277 377 260

Wein. 2009

255 378 221

Uni. 2003 0

0 0 379 0

Uni. 2004

288 380 269

WB (NL) 2008 0

0 0 381 0

Uni. 2007 0

0 0 382 0

NL 1994

231600000 218 383 169

TriS 1991

284 384 266

Fox 2005 0

0 0 385 0

WB

0

0 0 386 0

BV 2009

173400000 302 387 282

Sony 1990

353 388 360

Uni. 1981 0

0 0 389 0

Sony 2010 0

0 0 390 0

2004

437 391 463

Par. 2002 0

0 0 392 0

NL 2007

0 506 393 0

Uni. 2006

0 502 394 0

Par. 2004

0

395 0

P/DW 2007 0

0 0 396 0

Uni. 1989

213500000 240 397 193

Sony 2010

301 398 277

TriS 1992

214 399 166

Fox 2000 0

0 0 400 0

Fox 1990 240000000

394 401 414

WB (NL) 2011 209600000

0 487 402 0

Rocky UA 1976 0

0 0 403 0

Par. 2010 0

0 0 404 0

WB 2007

00000

268 405 232

Sony 2003 207700000

0 491 406 0

Uni. 2002

390 407 407

Par. 1999 0

0 0 408 0

WB 2011

103300000 443 409 464

Uni. 1999

198 410 146

Fox 1974 0

0 0 411 0

WB 1998

370 412 380

Sony 2007

420 413 440

BV 2000 0

0 0 414 0

TriS 2009

0 483 415 0

Col. 1986 0

0 0 416 0

Uni. 1973 0

0 0 417 0

Big Fox 1988 0

0 0 418 0

Fox 2004 0

0 0 419 0

BV 2004

142500000 361 420 353

BV 2008

270 421 229

WB 1999

1

439 422 451

WB 2012 0

0 0 423 0

Par. 1991 0

0 0 424 0

Sony 2000

461 425 470

Uni. 2012

323 426 303

BV 2005 0

0 0 427 0

Fox 2001 0

99

0 0 428 0

Fox 1975 0

0 0 429 0

Uni. 2009 219100000

446 430 454

Mira. 2001 0

0 0 431 0

Col. 1989

460 432 467

Par. 1997

381 433 387

Uni. 1988

451 434 460

2003 0

0 0 435 0

MGM 1965 0

0 0 436 0

BV 1998

371 437 368

BV 1989

0 481 438 0

Fox 1982 0

0 0 439 0

WB 2003

131 440 84

P/DW 2008 0

0 0 441 0

WB 2010

106000000 453 442 455

Sony 2004 0

0 0 443 0

Sony 2005 202000000

0 508 444 0

BV 2003 0

0 0 445 0

BV 2008

471 446 468

Dim. 2003

441 447 446

Par. 1986 0

0 0 448 0

Uni. 2005 0

0 0 449 0

Par. 1988

395 450 396

Uni. 2009 0

0 0 451 0

UA 1975 0

0 0 452 0

WB 1996 0

0 0 453 0

SonR 2001 0

0 0 454 0

Par. 1983 0

0 0 455 0

WB 1995

104000000 474 456 461

BV 2001 0

0 0 457 0

WB 1981 0

0 0 458 0

Uni. 2011 0

0 0 459 0

Mira. 1994

106000000 468 460 456

Par. 2009 0

0 0 461 0

Sony 1992 0

0 0 462 0

WB 2009 0

0 0 463 0

WB 1997

397 464 394

FoxS 2010

222400000 244 465 182

WB 1999 0

0 0 466 0

DW 2000

431 467 428

WB 2000 212700000

472 468 458

Par. 1993

341 469 313

WB 1989 0

0 0 470 0

MGM 1995

215 471 148

Par. 1970 0

0 0 472 0

Col.

0

0 0 473 0

Par. 2003 0

0 0 474 0

Par. 2003 0

0 0 475 0

Par. 1996 0

0 0 476 0

Robin Hood Uni. 2010 321700000

254 477 190

WB 1994

433 478 425

BV 1997 0

0 0 479 0

1967 0

0 0 480 0

BV 1996 0

0 0 481 0

Uni. 2003 231400000

413 482 406

DW 2002 0

0 0 483 0

BV 2009

338 484 304

Fox 2010

311300000 154 485 101

SonR 2003 0

0 0 486 0

Par. 2011

494 487 466

WB 2012

249 488 185

BV 1990 0

0 0 489 0

P/DW 2006 0

0 0 490 0

Fox 1980 0

0 0 491 0

P/DW 2012

279 492 223

LGF 2010

327 493 289

Dim. 1996 0

0 0 494 0

Sony 2011

111900000 463 495 442

Par. 1999 0

0 0 496 0

Mira. 2004

469 497 445

American Pie Uni. 1999

132900000 405 498 391

Fox 2003 0

0 0

0

Sony 2011 232600000

410 500 397

Uni. 2008

164 501 104

Col. 1993 0

0 0 502 0

Fox

0

0 0 503 0

Dis.

0

0 0 504 0

1942

337 505 298

WB (NL) 2008

393 506 364

BV 2000 237200000

400 507 378

WB 1994 0

0 0 508 0

Fox 1991 0

0 0 509 0

P/DW 2008 0

0 0 510 0

DW 1998

448 511 430

Dim. 1997 0

0 0 512 0

Col. 1980 0

0 0 513 0

WB 1996

392 514 363

WB 1992 0

0 0 515 0

Uni. 2003 0

0 0 516 0

BV 1997

432 517 413

Par. 1999

497 518 459

DW 2004

449 519 433

WB 1997 0

0 0 520 0

Sony 2003

358 521 315

WB 1993 0

0 0 522 0

Par. 2001

102800000 505 523 469

WB 2010

478 524 444

Par. 1998 0

0 0 525 0

WB 2004

450 526 435

Uni. 1970 0

0 0 527 0

Sony 1995

349 528 306

Sony 2008 0

0 0 529 0

Uni. 2007 0

0 0 530 0

Uni. 1995

187600000 312 531 249

Mira. 1998

306 532 245

Sony 2011

454 533 437

WB 2010 201600000

101300000 513 534 472

Uni. 2011 0

0 0 535 0

BV 1996

250 536 178

Seven NL 1995

247 537 174

Uni. 1989 0

0 0 538 0

Sony 2008 0

0 0 539 0

Fox 1995

197 540 133

WB 2008

0

336 0 278

Fox 2013 285400000 0 219100000 342 0 186

WB 2001 235900000 0

403 0 317

Uni. 2012

0

407 0 272

Fox 2008 211300000 0

482 0 308

Uni. 1995

0

364 0 242

Uni. 1990

0

386 0 321

Sony 2011 211800000 0

477 0 401

Uni. 2012

0

280 0 158

1997

0

368 0 215

Col. 1992 215900000 0

458 0 388

Par. 1995

0 134800000 484 0 384

Uni. 2004

0

350 0 183

Mira. 2001

0 210400000 319 0 200

BV 2003

0

372 0 299

WB 2001

0

515 0 453

TriS 1993

0

363 0 290

WB 2005

0

415 0 325

WB 2012

0

396 0 314

BV 1989 235900000 0

404 0 365

1987 214000000 0 150000000 467 0 339

WB 1994 214000000 0

466 0 393

Sony 2010

0

503 0 412

Uni. 1999

0 145100000 476 0 345

Fox 1999 212400000 0

473 0 410

Fox 2006

0 174500000 374 0 280

BV 2005

0

434 0 386

Gram. 1994 245700000 0

380 0 236

Fox 2004

0

514 0 409

Fox 2010

0

399 0 230

Par. 2013

0 156800000 496 0 322

BV 1997

0

367 0 327

BV 2008

0 162300000 366 0 305

BV 2005 235200000 0

406 0 171

2011

0

425 0 349

Par. 2012 216600000 0

452 0 374

WB 1991

0 135000000 499 0 382

BV 2012

0

318 0 202

Fox 2008

0

438 0 356

Uni. 1990 202000000 0

510 0 447

BV 2004

0

504 0 336

Fox 2005 211700000 0

479 0 300

Fox 2010

0

351 0 256

Mira. 1998 229200000 0

419 0 288

Uni. 2003

0

379 0 252

Fox 2003 212000000 0 118100000 475 0 427

Sony 2009 261200000 0

354 0 244

MGM 1979

0 140000000 485 0 367

Uni. 2007

0

418 0 227

Fox 2010

0

427 0 373

TriS 1993

0

495 0 398

BV 2009 201800000 0

511 0 253

WB 1990

0 135000000 440 0 381

BV 2010

0

235 0 151

Uni. 2009

0

464 0 432

BV 2011

0

298 0 201

Uni. 2002

0 116000000 488 0 436

SGem 2010

0

297 0 164

SGem 2012 236600000 0

428 0 231

Par. 1977

0

401 0 350

Uni. 1993

0 225200000 256 0 177

WB (NL) 2010

0 193000000 311 0 235

WB 1996

0 140000000 417 0 366

BV 2002

0

325 0 135

Par. 2011

0

186 0 107

Fox 2008

0

409 0 326

Mira. 1996

0

411 0 330

LGF 2012 300400000 0 215400000 286 0 191

Sony 1997

0

347 0 224

FoxS 1997

0 212000000 360 0 196

NL 2007

0

188 0 103

Sony 2011 227800000 0

422 0 399

Sony 2006

0 141900000 501 0 359

Wein. 2012

0

149 0 61

Sony 1998

0

373 0 323

Mira. 2001

0

486 0 438

Sony 2010

0 128000000 430 0 402

BV 2010 215300000 0

462 0 335

DW 2004

0

444 0 362

Sony 2010

0

320 0 198

Sony 2009

0

500 0 434

BV 2000

0

377 0 332

UA 2008 200300000 0 117200000 517 0 431

Sony 2000

0

459 0 341

Uni. 1995

0

344 0 275

2008 245100000 0 245100000 384 0 150

Fox 2008 219400000 0 139100000 445 0 369

WB 2012

0

283 0 187

WB 2008

0

435 0 408

Title Studio ReleaseYear WorldBoxOffice USBoxOffice NonUSBoxOffice WorldRank USRank NonUSRank
Avatar Fox 2 0 9 2

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper
7 8 3 7

6 5 76 25 20 1 80
Titanic Par. 1

99 2

18 4 6

58 67 23 15 26 70
Marvel’s The Avengers BV 20

12 15

11 62 33 57 10 88 40
The Dark Knight WB 200 100 46 5

34 85 44 4

69
Star Wars 19 10

27 47 54 77 55 50 28
1

97 7

75 400 4

60 98 3

14 43
The Dark Knight Rises 201 10

81 4

48 13 90 6

32
Shrek DW 2004 9

198 4

41 22 24 47

86 42
E.T.: The Extra-Terrestrial Uni. 19

82 79 29 4

35 110 35

78
Pirates of the Caribbean: Dead Man’s Chest 2006 10

66 2000 423 31 64 290
The Lion King 199 95 16 4

227 83 52
Toy Story 2010 10

63 4

150 488 6

482
The Hunger Games LGF 2012 6

91 408 106 92 283 1

17
Spider-Man Sony 2002 8

21 40

37 375 4

180 36
Transformers P/DW 2009 836

30 402 118 43

420 53
Harry Potter and the Deathly Hallows Part 2 2011 132 38 101 121 94 71
Finding Nemo 2003 92

170 380 84 61 5

409
Star Wars: Episode III – Revenge of the Sith 2005 848800000 380

270 4

68 500
The Lord of the Rings: The Return of the King NL 1

119 377 45 74 210
Spider-Man 2 783800000 3

73 4

102 65
The Passion of the Christ NM 61

190 370 93 241 72 155
Jurassic Park 1993 9

147 357 557600000
Transformers: Dark of the Moon 1

123 352 39 77

140
The Lord of the Rings: The Two Towers 9

260 342 51 365 58

350
Spider-Man 3 2007 89 336 303 554

300
Alice in Wonderland (2010) 10

243 33

419 111 690100000
Forrest Gump 1994 677400000 3

2

96 49 347
Shrek the Third 799000000 32

271 476
709700000 3

192 193 390
Iron Man 2008 58

520 3

184 266
Harry Potter and the Sorcerer’s Stone 2001 97

480 317 657200000
Indiana Jones and the Kingdom of the Crystal Skull 786600000 3

171 469
The Lord of the Rings: The Fellowship of the Ring 87 315 447 5

56
Iron Man 2 6

239 3

124 333 311
Star Wars: Episode II – Attack of the Clones 6

494 310 3

387
Pirates of the Caribbean: At World’s End 96

340 309 204 6

540
Return of the Jedi 1983 475 309

306 177 165 296
Independence Day 1996 8

174 306

169 268 5

112
Pirates of the Caribbean: The Curse of the Black Pearl 65

430 305 139 348
Skyfall 1

108 304 360 277 804000000
The Hobbit: An Unexpected Journey 10

142 302 517 7

117
Harry Potter and the Half-Blood Prince 9

344 301 59 197 63

250
The

Twilight Sum. 698500000 30053

175 398
The Twilight Saga: New Moon 709800000 2966

236 41

320
Harry Potter and the Deathly Hallows Part 1 956400000 295 330 660400000
The Sixth Sense 1999 67

280 293 506 292 379
Up 73

130 293004

164 4

383
Inception 8

255 29

257 195 533
The Twilight Saga: Breaking Dawn Part 2 LG/S 829200000 292

324 5

369
Harry Potter and the Order of the Phoenix 9

399 29200

473 6

479
The Chronicles of Narnia: The Lion, the Witch and the Wardrobe 7

450 291 109 453
The Empire Strikes Back 1980 5

384 290475067 247 145
Harry Potter and the Goblet of Fire 896900000 290013036 606900000
Monsters, Inc. 562500000 289 272 126
Home Alone 1990 476700000 285 190900000
The Matrix 7

421 28

157 461 460
The Twilight Saga: Breaking Dawn Part 1 7

122 28

128 133 430900000
Meet the Fockers 5

166 279 261 160 237 103
The Hangover 467 2773

225 190200000
48

440 267 501 2

167 114 189
The Amazing Spider-Man 75

220 26

203 490
Harry Potter and the Chamber of Secrets 879000000 26

1988 617000000
The Incredibles 6

314 26

144 370000000
How the Grinch Stole Christmas 345 2600

448 228
Jaws 1975 470 260000000 2

107
Star Trek 385 257730019 128000000 403
I Am Legend 58

530 256 393 329
The Blind Side 309200000 255959475 273
The Hangover Part II 581500000 254 464 327
Despicable Me 5

431 25

151 291600000
Batman 1989 4

113 251 188 160200000 158
Night at the Museum 574500000 2

508 326 323
Men in Black 1997 589400000 250690

539 338
Harry Potter and the Prisoner of Azkaban 796700000 249 410 5

471
Raiders of the Lost Ark 1981 389 248 159 141 173 361
Toy Story 2 485 245 179 2

392
Cars 462 244 298 217
Bruce Almighty 484 242 2

418 153
Twister 494500000 24

172 152 252
My

Big IFC 368 24

143 208 127 405
Pirates of the Caribbean: On Stranger Tides 104 241071802 802800000
Shrek Forever After 7

526 238 367 513
Ghost Col. 1984 2

386 212
Brave 5

354 2

372 207 298100000 105
Beverly Hills Cop 316 234 478
X-Men 459 2

343 246 225000000
War of the Worlds 591700000 23

428 357500000
Cast Away 429 233 214 196
The Exorcist 1973 441 232 208400000 205
The Lost World: Jurassic Park 6

186 229 389600000
Signs 408200000 227966634 180300000
Hancock 624400000 227946

274 396
The Bourne Ultimatum 442 227471070 2

154 138
Rush Hour 347300000 226 286 12

120 224
WALL-E 5

213 223 297
National Treasure 457 219 115 374
Alvin and the Chipmunks 443 2196

146 2

235 137 181
Mrs. Doubtfire 413 2

191 524 222
Beauty and the Beast 1991 425 218 206
Ted 5

474 218815

487 328
King Kong 5

505 218080025 33

240
505700000 2

176 313 288
How to Train Your Dragon 494900000 217581

231 277300000
The Da Vinci Code 758200000 217

536 5

407
Aladdin 1992 504 2173

502 286700000
361300000 2173

269 144000000 346
Saving Private Ryan 1998 481 216 265 134
Madagascar Wanted 2

163 148 525
Kung Fu Panda 631700000 215 434 416
Mission: Impossible 546400000 215409889 331
X2: X-Men United 407700000 2

149 496 192800000 162
Dr. Seuss’ The Lorax 348800000 214030500 134800000
Austin Powers in Goldmember 296700000 213

307
456 21061

493 2

455
Back to the Future 1985 381 210609762 170500000
Fast Five 626100000 209 376 116
Mission: Impossible – Ghost Protocol 694700000 209

397 485300000
Wedding Crashers 285200000 209255921
Sherlock Holmes 524000000 209028679 315000000
Batman Begins 374200000 206852

432 167400000
Charlie and the Chocolate Factory 475000000 206459076 268500000 129
Ratatouille 623700000 206

445 417
Austin Powers: The Spy Who Shagged Me 312 206040086 106000000
Terminator 2: Judgment Day TriS 519 20484

334
The Mummy 433 202 1978 231000000 125
Armageddon 5

537 201578

182 3

521
Tangled 590700000 200821936
Superman 391 200081192 191000000
Gone with the Wind MGM 1939 400200000 1986 201500000
Pearl Harbor 449 198542554 2

507 135
Monsters Vs. Aliens 381500000 198

351 183 178 131
Happy Feet 384300000 198000317 186300000
Indiana Jones and the Last Crusade 474200000 197171806 277000000
Ice Age Dinosaur 886700000 1965
Ice Age: The Meltdown 655400000 195330621 460100000
532 19

359 339 136
392600000 19

276 199800000
1995 362 191796233 170200000
Cars 2 559900000 191

452 368400000
Men in Black II 441800000 190418803 2

514
Grease 395 188755690 206200000
Wreck-It Ralph 4

458 188745000 257100000
Gladiator 457600000 187 427 269900000
Sherlock Holmes: A Game of Shadows 5

438 186848418 357000000
The Day After Tomorrow 544300000 186740799
Mr. & Mrs. Smith 478200000 186336279 291900000
Snow White and the

Seven Dis. 1937 18

492 486
Dances with Wolves Orion 424 184208848 240000000 156
Batman Forever 336500000 184031112 152500000
The Fugitive 368900000 183875760 185 258
Ocean’s Eleven 450700000 18

341 267300000
The Polar Express 307500000 18

337 373 124100000 411
The Simpsons Movie 527 183135014 3

439
What Women Want 374100000 18

281 191300000
The Perfect Storm 3

287 182618434 146100000
Lincoln 261200000 181804000 355
Liar Liar 302700000 181410615 121300000
Jurassic Park III 368800000 181171875 187600000
Thor 449300000 181030624 268300000
457700000 180981856 276700000
Planet of the Apes (2001) 362200000 180011740 182200000 161 263
Madagascar: Escape 2 Africa 603900000 180010950 423900000
X-Men Origins: Wolverine 373100000 179883157 193200000
Indiana Jones and the Temple of Doom 333100000 179870271 153200000
Top Gun 356 179800601 177000000
Hitch 368100000 179

495 188600000
MIB 3 624000000 179020854 445000000
Pretty Woman 463 178

406 285000000 168
Oz The Great and Powerful 2013 356400000 177559000 178800000 264
Night at the Museum: Battle of the Smithsonian 413100000 1772

437 235900000
Tootsie 1982 177200000
Rise of the Planet of the Apes 176760185 305000000
Captain America: The First Avenger 368600000 176654505 192000000 194
The Karate Kid 359100000 176591618 182500000 262
There’s Something About Mary 369900000 17648

465 193400000
383300000 176387405 206900000
The Bourne Supremacy 288500000 176241941 11

230
Crocodile Dundee 3

282 174803506 1

534
Apollo 13 355200000 173837933 181400000 211
Home Alone 2: Lost in New York 359000000 17

358 516 185400000
Elf 220400000 173398

518
347500000 173008894 174500000
Air Force One 315200000 172956409 1

422
Rain Man 354800000 172825

435 182000000
Tron Legacy 400100000 172062763 228000000
463500000 171479930 292000000
True Grit 2

511 171243005
Tarzan 448200000 171091819 277100000
A Beautiful Mind 313500000 170742341 142800000
Chicago Mira. 306800000 170687518 136100000
The Help 211600000 169708112
Bridesmaids 288400000 169106725 119300000
Quantum of Solace 586100000 168368427 417700000
Wild Hogs 253 168273550
Three Men and a Baby 1987 167780960
Casino Royale 599000000 167445960 431600000
Meet the Parents 330400000 16624

404 164200000
769700000 166112167 603600000
Robin Hood 165493908
Kung Fu Panda 2 665700000 165249063 500400000
Hannibal 351700000 16

509 186600000
Catch Me If You Can 16461

535 187500000
The Proposal 317400000 163958031
The Pursuit of Happyness 307100000 163566459 143500000 275
Big Daddy 234800000 163479795
Clash of the Titans (2010) 493200000 16

321 330000000
Batman Returns 266800000 162831698 104000000
A Bug’s Life 363 162798565 200600000
Grown Ups 271400000 162001186 109400000
Django Unchained Wein. 413000000 162001000 2

510
The Waterboy 161

491
Ice Age: Continental Drift 877200000 161321843 715900000
Die Another Day 432000000 160942139 271000000
Shark Tale 367300000 160861908 206400000
The Sound of Music 158671368
The Firm 270200000 1583

483 111900000
The Longest Yard 158119460
296300000 157

299 139000000
Scary Movie 278 1570

1977 121000000
Fatal Attraction 320100000 156645693 163500000
Who Framed Roger Rabbit 329800000 1564

523 173400000 221
The Sting 156000000
What Lies Beneath 291400000 155464351 136000000
415 15

538 260500000
Snow White and the Huntsman 396600000 155

332 241300000
Fast and Furious 363200000 15506

426 208100000
Over the Hedge 336000000 155019340 181000000
Fantastic Four 330600000 154696080 175900000
Dr. Seuss’ Horton Hears a Who! 297100000 1545

294 142600000
Jerry Maguire 273600000 15395

259 119600000
Beverly Hills Cop II 300000000 15

366 503 146300000
Scooby-Doo 275700000 153294164 122400000
Gremlins 15

308
Sex and the City WB (NL) 415300000 1526

472 262600000
Runaway Bride 309500000 1

522 157200000 318
Rambo: First Blood Part II 300400000 150415432 150000000
Terminator 3: Rise of the Machines 433400000 150

371 283000000
G.I. Joe: The Rise of Cobra 302500000 150201

498 152300000
Puss in Boots 554700000 149260504 405400000
Knocked Up 219100000 148768917
Les Miserables (2012) 432900000 148578355 284
As Good as It Gets 314200000 148478011 165700000
Little Fockers 310700000 148438600 162200000
Megamind 321900000 148415853 173500000
Hotel Transylvania 345900000 148313048 1976
Talladega Nights: The Ballad of Ricky Bobby 148213377
Gran Torino 270000000 148095302 121900000 335
Lethal Weapon 2 227900000 147253986
X-Men: First Class 353 146408305 207200000
Paul Blart: Mall Cop 146336178
True Lies 378 146282411 232600000
Lilo & Stitch 273100000 145794338 127300000
American Pie 287600000 1

451 142500000
Taken 226800000 145000989
101 Dalmatians 1961 215900000 144880014
The Santa Clause 144833357
I, Robot 347200000 144801023 202400000
Lethal Weapon 3 321700000 144731527
The Fast and the Furious 207300000 144533925
Doctor Dolittle 294500000 144156605 150300000
Mamma Mia! 609800000 144130063 465700000
Rio 1

436 341000000
Juno FoxS 231400000 14

349 414
Marley and Me 242700000 143153751
The Smurfs 563700000 142614158 421100000
XXX SonR 277400000 142109

382 135300000 322
The Jungle Book 1967 205800000 141843612
The Chronicles of Narnia: Prince Caspian 4

1970 141621490
National Lampoon’s Animal House 141600000
Pocahontas 346100000 141579773 204500000
A Few Good Men 243200000 1413

401 101900000 388
Slumdog Millionaire 377900000 141

319 236600000
2

444 141186864 103200000
The Blair Witch Project Art. 248600000 140539099 108100000
Deep Impact 349500000 14046

466 209000000
Rush Hour 3 258000000 140125968 117900000
Look Who’s Talking 297000000 140088813 156900000
Stuart Little 300100000 140035367 160100000
Taken 2 376100000 139854287 236300000
Sister Act 231600000 13960

515 412
The Matrix Revolutions 427300000 13931

394 288000000
The Santa Clause 2 139236327
The King’s Speech 414200000 138797449 275400000
Cheaper by the Dozen 13861

454
Bad Boys II 273300000 138608444 134700000
Platoon 138530565
21 Jump Street 201600000 138447667 512
Good Will Hunting 225900000 138433435
A Christmas Carol (2009) 325 137855863 187400000
349800000 137748063 212100000
Click 237700000 137355633 100300000
The Green Mile 286800000 136801374
Ransom 1

364 173000000
Godzilla 379000000 136314294
101 Dalmatians (1996) 320700000 136189294 184500000
Anger Management 135645823
Chicken Little 314400000 135386665 179000000
Argo 227700000 135376835
Teenage Mutant Ninja Turtles 202000000 135265915
Patch Adams 202300000 135026902
The Godfather 1972 245100000 134966411 110100000
The Incredible

Hulk 263400000 134806913 128600000
Live Free or Die Hard 383500000 134

529 249000000
341400000 134508551
300200000 134218018 166000000
The Rock 335100000 134069511 201000000
Mission: Impossible III 397900000 134029801 263800000
Troy 497 133378256 364000000
Angels & Demons 485900000 133375846 352600000
Alvin and the Chipmunks: Chipwrecked 342700000 133110742 209600000
Bringing Down the House 132716677
The Departed 289800000 132384315 157500000
245400000 132177234 113200000
Close Encounters of the Third Kind 303800000 132088635 171700000
Minority Report 358400000 132072926 226300000
Fantastic Four: Rise of the Silver Surfer 289000000 131921738 157100000
The Last Airbender 319700000 131772187 187900000
Lara Croft: Tomb Raider 274700000 131168070
The Silence of the Lambs 272700000 130742922 142000000
Honey, I Shrunk the Kids 222700000 130724172
The Flintstones 341600000 130

531 211100000
Lethal Weapon 4 285400000 1304

446 155000000
Get Smart 230700000 130319208 100400000
American Gangster 266500000 130164645 136300000
American Beauty 356300000 130096601 226200000
An Officer and a Gentleman 129795554
The Ring 249300000 129128133 120200000
The Nutty Professor (1996) 274000000 128814019 145100000
Borat: Cultural Learnings of America for Make Benefit Glorious Nation of Kazakhstan 261600000 128505958 133100000
Robots 260700000 128200012 132500000
Coming to America 288800000 128152301 160600000
Crouching Tiger, Hidden Dragon SPC 213500000 128078872
Shutter Island 294800000 128012934 166800000
Rocky UA 300500000 127873716 172600000
Enchanted 340500000 127807262 212700000
Identity Thief 127727000
The Curious Case of Benjamin Button 333900000 127509326
Sweet Home Alabama 127223418
Silver Linings Playbook 216000000 127199000
Dumb and Dumber 247300000 127175374 120100000
2 Fast 2 Furious 236400000 127154901 109200000
My Best Friend’s Wedding 299300000 127120029 172200000
Super 8 259900000 127004179 132900000
The World Is Not Enough 361800000 126943684 234900000
Smokey and the Bandit 126737428
Sleepless in Seattle 227800000 126680884 101100000
Bee Movie 126631277 161000000
Prometheus 403400000 126

477 276900000
Safe House 126373434
Mr. Deeds 126293452
The Truman Show 264100000 125618201 138500000
Erin Brockovich 256300000 125595205 130700000
Ocean’s Twelve 362700000 125544280 237200000
Terminator Salvation 371400000 125322469 246000000
Charlie’s Angels 125305545 138800000
Tomorrow Never Dies 333000000 125304276 207700000
Rocky III 125049125
The Vow SGem 125014030
Cloudy with a Chance of Meatballs 243000000 124870275 118100000
The Devil Wears Prada 326600000 124740460 201800000
Something’s Gotta Give 266700000 124728738
Traffic USA 207500000 124115725
The Birdcage 124060553
City Slickers 124033791
Good Morning, Vietnam 123922370
Rango 123477607
The Nutty Professor II: The Klumps 123309890
Life of Pi 604400000 122527000 481900000
Clear and Present Danger 122187717
The Hunt for Red October 200500000 122012643
The Bodyguard 411000000 122006740
Wayne’s World 121697323
The Bourne Identity 214000000 121661683
Superbad 121463226
Speed 350400000 121248145 229200000
50 First Dates 120908074
Mulan 304300000 120620254 183700000
Inglourious Basterds 321500000 120540719 200900000
Seabiscuit 120277854
Van Helsing 300300000 120177084 180100000
Four Christmases 120146040
I Now Pronounce You Chuck and Larry 120059556
The Mask 351600000 119938730
Hook 300900000 119654823 181200000
Walk the Line 119519402
Blazing Saddles 1974 119500000
G-Force 292800000 119436770
Total Recall 261300000 119412921 141900000
On Golden Pond 119285432
The Other Guys 119219978
Fahrenheit 9/11 Lions 222400000 119194771 103300000
The Sum of All Fears 118907036
Hairspray (2007) 202500000 118871849
The Break-Up 205000000 118703275
Lemony Snicket’s A Series of Unfortunate Events 209100000 118634549 489
Blades of Glory 118594548
Back to the Future Part II 332000000 118450002
Salt 293500000 118311368 175200000
Basic Instinct 352900000 117727224 235200000
Big Momma’s House 117559438
Die Hard 2: Die Harder 117540947 122500000
Horrible Bosses 117538559
117235147
Jackass 3-D 117229692
Ocean’s Thirteen 311300000 117154724 1942
S.W.A.T. 116934650
8 Mile 242900000 116750901 126100000
Double Jeopardy 116741558
Green Lantern 219900000 116601172
Notting Hill 363900000 116089678 247800000
The Towering Inferno 116000000
You’ve Got Mail 250800000 115821495 135000000
Ghost Rider 228700000 115802596 112900000
Remember the Titans 115654751
District 9 210800000 115646235
The Karate Kid Part II 115103979
American Graffiti 115000000
114968774
DodgeBall: A True Underdog Story 114326736
The Village 256700000 114197520
Bolt 310000000 114053579 195900000
Wild Wild West 222100000 11380

468 108300000
Magic Mike 113721571
The Addams Family 113502426
The Patriot 215300000 113330342 102000000
The Bourne Legacy 276100000 113203870 162900000
The Pacifier 113086868
Dr. Dolittle 2 1129

528
The Rocky Horror Picture Show 112892319
It’s Complicated 112735375 106400000
Spy Kids 112719001
Ghostbusters II 215400000 112494738 102900000
Face/Off 245700000 112276146 133400000
Twins 216600000 111938388 104700000
Spy Kids 3D: Game Over Dim. 111761982
Doctor Zhivago 111721910
Enemy of the State 250600000 111549836 139100000
The Little Mermaid 211300000 111543479
Porky’s 111289673
The Last Samurai 456800000 111127263 345600000
Tropic Thunder 110515313
Valentine’s Day 216500000 110485654
The Grudge 110359362
Fun with Dick and Jane 110332737
Freaky Friday 110230332
Bedtime Stories 212900000 110101975 102800000
Scary Movie 3 220700000 110003217 110700000
Star Trek IV: The Voyage Home 109713132
The 40-Year-Old Virgin 109449237
Crocodile Dundee II 239600000 109306210 130300000
Couples Retreat 109204945
One Flew Over the Cuckoo’s Nest 108981275
A Time to Kill 108766007
Black Hawk Down 108638745
Terms of Endearment 108423489
Ace Ventura: When Nature Calls 212400000 108385533
The Princess Diaries 108248956
Superman II 108185706
Hop 108085305
Pulp Fiction 213900000 107928762
Paranormal Activity 107918810
A League of Their Own 107533928
Watchmen 107509799
Batman and Robin 238200000 107325195 130900000
Black Swan 329400000 106954678
Analyze This 106885658
Chicken Run 224800000 106834564 118000000
Miss Congeniality 106807667 105900000
Indecent Proposal 266600000 106614059 160000000
Driving Miss Daisy 106593296
GoldenEye 352200000 106429941 245800000
Love Story 106397186
Kramer Vs. Kramer 1979 106260000
The Italian Job 106128601
How to Lose a Guy in 10 Days 105813373
The First Wives Club 105489203
105269730 216400000
Interview with the Vampire 223700000 105264608 118400000
George of the Jungle 105263257
The Graduate AVCO 104945305
Phenomenon 104636382
American Wedding 104565114 126900000
Road to Perdition 104454762
The Princess and the Frog 267000000 104400899 162600000
The Chronicles of Narnia: The Voyage of the Dawn Treader 415700000 104386950
Daddy Day Care 104297061
Paranormal Activity 3 207000000 104028807 103000000
Journey 2: The Mysterious Island 325900000 103860290 222000000
Dick Tracy 103738726
Dreamgirls 103365956
9 to 5 103290500
Rise of the Guardians 303500000 103174000 200300000
The Expendables 274500000 103068524 171400000
Scream 103046663
Just Go With It 214900000 103028109
The General’s Daughter 102705852
The Aviator 213700000 102610330 111100000
235500000 102561004
Daredevil 102543518 499
The Girl with the Dragon Tattoo (2011) 102515793 130100000
The Mummy: Tomb of the Dragon Emperor 401100000 102491776 298600000
In the Line of Fire 102314823
Butch Cassidy and the Sundance Kid 1969 102308889
Mary Poppins 1964 102272727
Bambi RKO 267400000 102247150 165200000
Journey to the Center of the Earth 242000000 101704370 140300000
Gone in 60 Seconds 101648571 135600000
Maverick 101631272
Sleeping with the Enemy 101599005
Eagle Eye 101440743
The Prince of Egypt 218600000 101413188 117200000
Scream 2 101363301
Stir Crazy 101300000
Eraser 242300000 101295562 141000000
Unforgiven 101157447
The Cat in the Hat 101149285
Con Air 224000000 101117573 122900000
Sleepy Hollow 206100000 101071502 105000000
Collateral 217800000 101005703 116800000
Contact 100920329
Charlie’s Angels: Full Throttle 259200000 100830111 158300000
The Pelican Brief 100768056
Vanilla Sky 203400000 100618344
Due Date 211800000 100539043 111200000
The Rugrats Movie 100494675
Million Dollar Baby 216800000 100492203 116300000
Airport 100489151
Jumanji 262800000 100475249 162300000
Step Brothers 100468793
Evan Almighty 100462298
Casper 287900000 100328194
Shakespeare in Love 289300000 100317794 189000000
Bad Teacher 216200000 100292856 115900000
Yogi Bear 100246011
Cowboys & Aliens 100240551
The Hunchback of Notre Dame 325300000 100138851 225200000
327300000 100125643 227200000
Parenthood 100047830
You Don’t Mess with the Zohan 100018837
Die Hard: With A Vengeance 366100000 100012499 266100000
10,000 B.C. 269800000 175000000
A Good Day to Die Hard
A.I. Artificial Intelligence 157300000
American Reunion 235000000 178000000
Australia 161800000
Babe 254100000 190500000
Back to the Future Part III 244500000 156800000
Battle: Los Angeles 128300000
Battleship 303000000 237600000
Bean Gram. 251200000 205900000
Bram Stoker’s Dracula 133300000
Braveheart 210400000
Bridget Jones: The Edge of Reason 262500000 222300000
Bridget Jones’s Diary 281900000
Brother Bear 250400000 165100000
Cats & Dogs 200700000 107300000
Cliffhanger 255000000 171000000
Constantine 230900000 154900000
Dark Shadows 239100000 159400000
Dead Poets Society 140000000
Dirty Dancing Vest
Disclosure 131000000
Eat Pray Love 204600000 124000000
End of Days 212000000
Entrapment 124700000
Eragon 249500000
Flightplan 223400000 133700000
Four Weddings and a Funeral 193000000
Garfield: The Movie 200800000 125400000
Gulliver’s Travels 237400000 194600000
Hansel and Gretel: Witch Hunters 211700000
Hercules 252700000 153600000
High School Musical 3: Senior Year 252900000
Howl’s Moving Castle 230500000
Immortals Rela. 226900000 143400000
Jack Reacher 136500000
JFK 205400000
John Carter 282800000 209700000
Jumper 222200000 142100000
Kindergarten Cop 110500000
King Arthur 203600000 151700000
Kingdom of Heaven 164300000
Knight & Day 261900000 185500000
Life Is Beautiful 171600000
Love Actually 246900000 187200000
Master and Commander: The Far Side of the World
Michael Jackson’s This Is It 189100000
Moonraker 210300000
Mr. Bean’s Holiday 229700000 196400000
Percy Jackson & The Olympians: The Lightning Thief 226500000 137700000
Philadelphia 206700000 129200000
Ponyo 186700000
Presumed Innocent 221300000
Prince of Persia: The Sands of Time 335200000 244400000
Public Enemies 214100000 117000000
Real Steel 295500000 210000000
Red Dragon 209200000
Resident Evil: Afterlife 296200000 236100000
Resident Evil: Retribution 194300000
Saturday Night Fever 237100000 142900000
Schindler’s List 321300000
Sex and the City 2 288300000
Space Jam 230400000
Spirited Away 274900000 264900000
The Adventures of Tintin 374000000 296400000
The Day the Earth Stood Still (2008) 233100000 153700000
The English Patient 232000000 153300000
The Expendables 2
The Fifth Element 263900000 200100000
The Full Monty 257900000
The Golden Compass 372200000 302100000
The Green Hornet 129000000
The Holiday 205100000
The Intouchables 426600000 416400000
The Mask of Zorro 250300000 156200000
The Others 209900000 113400000
The Social Network 224900000
The Sorcerer’s Apprentice 152100000
The Terminal 219400000 141500000
The Tourist 278300000 210700000
The Ugly Truth 205300000 116400000
Unbreakable 248100000 153100000
Valkyrie
Vertical Limit 215700000 146400000
Waterworld 264200000 176000000
Welcome to the Sticks N/A
What Happens in Vegas
Wrath of the Titans 302000000 218300000
Yes Man 223200000 125600000

// Movie.cpp
#include “Movie.h” // include Movie class definition
#include
using namespace std;
Movie::Movie() {
title = studio = “”;
boxOffice[WORLD] = boxOffice[US] = boxOffice[NON_US] =
rank[WORLD] = rank[US] = rank[NON_US] = releaseYear = 0;
}
Movie::Movie(string temp) {
istringstream iS(temp);
getline(iS, title, ‘\t’);
getline(iS, studio, ‘\t’);
iS >> releaseYear >> boxOffice[WORLD] >> boxOffice[US] >> boxOffice[NON_US] >>
rank[WORLD] >> rank[US] >> rank[NON_US];
}
string Movie::getTitle() const {return title;}
string Movie::getStudio() const {return studio;}
long long Movie::getUSBoxOffice() const {return boxOffice[US];}
long long Movie::getNonUSBoxOffice() const {return boxOffice[NON_US];}
long long Movie::getWorldBoxOffice() const {return boxOffice[WORLD];}
int Movie::getUSRank() const {return rank[US];}
int Movie::getNonUSRank() const {return rank[NON_US];}
int Movie::getWorldRank() const {return rank[WORLD];}
int Movie::getReleaseYear() const {return releaseYear;}
ostream& operator <<(ostream& oS, const Movie& m) { oS << "\n\n====================== Movie Information\n" << "\n Movie Title:\t" << m.title << " (" << m.releaseYear << ")" << "\n US Rank & Box Office:\t" << m.rank[m.US] << "\t$" << m.boxOffice[m.US] << "\nNon-US Rank & Box Office:\t" << m.rank[m.NON_US] << "\t$" << m.boxOffice[m.NON_US] << "\n World Rank & Box Office:\t" << m.rank[m.WORLD] << "\t$" << m.boxOffice[m.WORLD] << "\n"; return oS; } Movie::Movie(const Movie &mP) { // private copy constructor blocks invocation this->title = mP.title;
this->studio = mP.studio;
this->releaseYear = mP.releaseYear;
this->rank[US] = mP.rank[US];
this->rank[NON_US] = mP.rank[NON_US];
this->rank[WORLD] = mP.rank[WORLD];
this->boxOffice[US] = mP.boxOffice[US];
this->boxOffice[NON_US] = mP.boxOffice[NON_US];
this->boxOffice[WORLD] = mP.boxOffice[WORLD];
}

// Movie.h
#ifndef MOVIE_H
#define MOVIE_H
#include
using namespace std;
class Movie {
// data is private by default
string title, studio;
long long boxOffice[3]; // World, US, non-US
short rank[3], releaseYear; // World, US, non-US
enum unit {WORLD, US, NON_US};
public:
Movie();
Movie(string);
string getTitle() const;
string getStudio() const;
long long getWorldBoxOffice() const;
long long getUSBoxOffice() const;
long long getNonUSBoxOffice() const;
int getWorldRank() const;
int getUSRank() const;
int getNonUSRank() const;
int getReleaseYear() const;
friend ostream& operator <<(ostream&, const Movie&); private: Movie(const Movie &); // private copy constructor blocks invocation }; #endif

// MovieInfoApp.cpp
#include “Movie.h” // include Movie class definition
#include “Movies.h” // include Movies class definition
#include
#include
#include
using namespace std;
void main() {
Movies movies(“Box Office Mojo.txt”);
if(movies.getMovieCount() > 0) {
string movieCode;
cout << "Please enter the movie search string,\nentering a leading # to retrieve by movie number" << "\n or a ^ to get the next movie (press Enter to exit): "; getline(cin, movieCode); if (movieCode.length() > 0) {
int mn = 0;
const Movie * m;
do {
if(movieCode[0] != ‘#’ && movieCode[0] != ‘^’)
m = movies.getMovie(movieCode, mn);
else if(movieCode[0] == ‘#’){ // get by number
mn = stoi(movieCode.substr(1));
m = movies[mn];
} else if(movieCode[0] == ‘^’) // get next movie
m = movies[++mn];
if(m != nullptr) {
cout << *m << "\n"; if(m->getWorldBoxOffice() > 0)
cout << setprecision(1) << fixed << "\n\tNon-US to World Ratio:\t" << (m->getNonUSBoxOffice() * 100.0) /
m->getWorldBoxOffice() << "%\n" << endl; else cout << "No ratio due to zero World Box Office\n"; } else { cout << "\n Movie not found!\n\n" << endl; mn = 0; } cout << "Please enter the movie search string,\nentering a leading # to retrieve by movie number" << "\n or a ^ to get the next movie (press Enter to exit): "; getline(cin, movieCode); } while (movieCode.length() > 0);
}
}
}

// Movies.cpp
#include “Movie.h” // include Movie class definition
#include “Movies.h” // include Movies class definition
#include
using namespace std;
Movies::Movies(string fn){loadMovies(fn);}
int Movies::getMovieCount() const {return movieCnt;}
const moviePtr Movies::getMovie(string mc, int& mn) const {
if(mc.length()==0)
return nullptr; // not found
else {
mc = myToLower(mc);
int ndx=0;
for(;ndxgetTitle()).find(mc)==
string::npos);ndx++);
mn = ndx 0 && ndx <= movieCnt)?movies[ndx-1]:nullptr; } Movies::~Movies() { delete[] movies; movies = nullptr; } void Movies::loadMovies(string fn) { ifstream iS(fn); string s; getline(iS, s); // skip heading getline(iS, s); movieCnt=0; movies = new moviePtr[MAX_MOVIES]; while(!iS.eof()) { movies[movieCnt++] = new Movie(s); getline(iS, s); } iS.close(); reSize(); } void Movies::reSize() { moviePtr * m = movies; movies = new moviePtr[movieCnt]; for(int i=0;i

// Movies.h
#ifndef MOVIES_H
#define MOVIES_H
#include “Movie.h” // include Movie class definition
#include
using namespace std;
typedef Movie* moviePtr;
class Movies {
// data is private by default
static const int MAX_MOVIES = 1000;
moviePtr *movies;
short movieCnt;
public:
Movies(string);
int getMovieCount() const;
const moviePtr getMovie(string, int&) const;
const moviePtr operator[](int) const;
~Movies();
private:
void loadMovies(string);
string myToLower(string) const;
void reSize();
};
#endif

Assignment 4 Solution/Assignment 4 Solution.sdf

Assignment 4 Solution/Assignment 4 Solution.sln
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project(“{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}”) = “Assignment 4 Solution”, “Assignment 4 Solution\Assignment 4 Solution.vcxproj”, “{FCA280AC-C2BA-4CD9-8007-63EE25C385DC}”
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{FCA280AC-C2BA-4CD9-8007-63EE25C385DC}.Debug|Win32.ActiveCfg = Debug|Win32
{FCA280AC-C2BA-4CD9-8007-63EE25C385DC}.Debug|Win32.Build.0 = Debug|Win32
{FCA280AC-C2BA-4CD9-8007-63EE25C385DC}.Release|Win32.ActiveCfg = Release|Win32
{FCA280AC-C2BA-4CD9-8007-63EE25C385DC}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

Assignment 4 Solution/Assignment 4 Solution.suo

Assignment 4 Solution/Assignment 4 Solution/Assignment 4 Solution.vcxproj

Debug
Win32

Release
Win32

{FCA280AC-C2BA-4CD9-8007-63EE25C385DC}
Win32Proj
Assignment4Solution

Application
true
Unicode

Application
false
true
Unicode

true

false

Level3
Disabled
WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)

Console
true

Level3

MaxSpeed
true
true
WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)

Console
true
true
true

Assignment 4 Solution/Assignment 4 Solution/Assignment 4 Solution.vcxproj.filters

{4FC737F1-C7A5-4376-A066-2A32D752A2FF}
cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx

{93995380-89BD-4b04-88EB-625FBE52EBFB}
h;hpp;hxx;hm;inl;inc;xsd

{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}
rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms

Header Files

Header Files

Source Files

Source Files

Source Files

Assignment 4 Solution/Assignment 4 Solution/Assignment 4 Solution.vcxproj.user

Assignment 4 Solution/Assignment 4 Solution/Box Office Mojo.txt
Title Studio ReleaseYear WorldBoxOffice USBoxOffice NonUSBoxOffice WorldRank USRank NonUSRank

Avatar Fox 2009 2782300000 760507625 2021800000 1 1 1

Titanic Par. 1997 2185400000 658672302 1526700000 2 2 2

Marvel’s The Avengers BV 2012 1511800000 623357910 888400000 3 3 4

The Dark Knight WB 2008 1004600000 534858444 469700000 15 4 44

Star Wars: Episode I – The Phantom Menace Fox 1999 1027000000 474544677 552500000 12 5 28

Star Wars Fox 1977 775400000 460998007 314400000 43 6 99

The Dark Knight Rises WB 2012 1081000000 448139099 632900000 8 7 19

Shrek 2 DW 2004 919800000 441226247 478600000 24 8 42

E.T.: The Extra-Terrestrial Uni. 1982 792900000 435110554 357800000 40 9 76

Pirates of the Caribbean: Dead Man’s Chest BV 2006 1066200000 423315812 642900000 9 10 18

The Lion King BV 1994 951600000 422783777 528800000 19 11 34

Toy Story 3 BV 2010 1063200000 415004880 648200000 10 12 16

The Hunger Games LGF 2012 691200000 408010692 283200000 57 13 117

Spider-Man Sony 2002 821700000 403706375 418000000 36 14 58

Transformers: Revenge of the Fallen P/DW 2009 836300000 402111870 434200000 33 15 53

Harry Potter and the Deathly Hallows Part 2 WB 2011 1328100000 381011219 947100000 4 16 3

Finding Nemo BV 2003 921700000 380843261 540900000 23 17 30

Star Wars: Episode III – Revenge of the Sith Fox 2005 848800000 380270577 468500000 32 18 46

The Lord of the Rings: The Return of the King NL 2003 1119900000 377845905 742100000 6 19 8

Spider-Man 2 Sony 2004 783800000 373585825 410200000 42 20 65

The Passion of the Christ NM 2004 611900000 370782930 241100000 72 21 155

Jurassic Park Uni. 1993 914700000 357067947 557600000 25 22 25

Transformers: Dark of the Moon P/DW 2011 1123700000 352390543 771400000 5 23 7

The Lord of the Rings: The Two Towers NL 2002 926000000 342551365 583500000 22 24 24

Spider-Man 3 Sony 2007 890900000 336530303 554300000 27 25 27

Alice in Wonderland (2010) BV 2010 1024300000 334191110 690100000 13 26 12

Forrest Gump Par. 1994 677400000 329694499 347700000 58 27 83

Shrek the Third P/DW 2007 799000000 322719944 476200000 38 28 43

Transformers P/DW 2007 709700000 319246193 390500000 54 29 69

Iron Man Par. 2008 585200000 318412101 266800000 82 30 132

Harry Potter and the Sorcerer’s Stone WB 2001 974800000 317575550 657200000 16 31 14

Indiana Jones and the Kingdom of the Crystal Skull Par. 2008 786600000 317101119 469500000 41 32 45

The Lord of the Rings: The Fellowship of the Ring NL 2001 871500000 315544750 556000000 31 33 26

Iron Man 2 Par. 2010 623900000 312433331 311500000 69 34 100

Star Wars: Episode II – Attack of the Clones Fox 2002 649400000 310676740 338700000 63 35 88

Pirates of the Caribbean: At World’s End BV 2007 963400000 309420425 654000000 17 36 15

Return of the Jedi Fox 1983 475100000 309306177 165800000 119 37 296

Independence Day Fox 1996 817400000 306169268 511200000 37 38 37

Pirates of the Caribbean: The Curse of the Black Pearl BV 2003 654300000 305413918 348900000 62 39 82

Skyfall Sony 2012 1108300000 304360277 804000000 7 40 5

The Hobbit: An Unexpected Journey WB 2012 1014200000 302517733 711700000 14 41 10

Harry Potter and the Half-Blood Prince WB 2009 934400000 301959197 632500000 21 42 20

The Twilight Saga: Eclipse Sum. 2010 698500000 300531751 398000000 55 43 67

The Twilight Saga: New Moon Sum. 2009 709800000 296623634 413200000 53 44 64

Harry Potter and the Deathly Hallows Part 1 WB 2010 956400000 295983305 660400000 18 45 13

The Sixth Sense BV 1999 672800000 293506292 379300000 59 46 72

Up BV 2009 731300000 293004164 438300000 51 47 52

Inception WB 2010 825500000 292576195 533000000 35 48 33

The Twilight Saga: Breaking Dawn Part 2 LG/S 2012 829200000 292324737 536900000 34 49 32

Harry Potter and the Order of the Phoenix WB 2007 939900000 292004738 647900000 20 50 17

The Chronicles of Narnia: The Lion, the Witch and the Wardrobe BV 2005 745000000 291710957 453300000 48 51 50

The Empire Strikes Back Fox 1980 538400000 290475067 247900000 96 52 145

Harry Potter and the Goblet of Fire WB 2005 896900000 290013036 606900000 26 53 22

Monsters, Inc. BV 2001 562500000 289587423 272900000 86 54 126

Home Alone Fox 1990 476700000 285761243 190900000 118 55 241

The Matrix Reloaded WB 2003 742100000 281576461 460600000 49 56 48

The Twilight Saga: Breaking Dawn Part 1 Sum. 2011 712200000 281287133 430900000 52 57 55

Meet the Fockers Uni. 2004 516600000 279261160 237400000 103 58 160

The Hangover WB 2009 467500000 277322503 190200000 123 59 243

Shrek DW 2001 484400000 267665011 216700000 114 60 189

The Amazing Spider-Man Sony 2012 752200000 262030663 490200000 47 61 39

Harry Potter and the Chamber of Secrets WB 2002 879000000 261988482 617000000 29 62 21

The Incredibles BV 2004 631400000 261441092 370000000 65 63 73

How the Grinch Stole Christmas Uni. 2000 345100000 260044825 0 228 64 0

Jaws Uni. 1975 470700000 260000000 210700000 122 65 199

Star Trek Par. 2009 385700000 257730019 128000000 174 66 403

I Am Legend WB 2007 585300000 256393010 329000000 81 67 93

The Blind Side WB 2009 309200000 255959475 0 273 68 0

The Hangover Part II WB 2011 581500000 254464305 327000000 83 69 95

Despicable Me Uni. 2010 543100000 251513985 291600000 95 70 110

Batman WB 1989 411300000 251188924 160200000 158 71 311

Night at the Museum Fox 2006 574500000 250863268 323600000 84 72 96

Men in Black Sony 1997 589400000 250690539 338700000 79 73 89

Harry Potter and the Prisoner of Azkaban WB 2004 796700000 249541069 547100000 39 74 29

Raiders of the Lost Ark Par. 1981 389900000 248159971 141800000 173 75 361

Toy Story 2 BV 1999 485000000 245852179 239200000 111 76 157

Cars BV 2006 462000000 244082982 217900000 126 77 188

Bruce Almighty Uni. 2003 484600000 242829261 241800000 113 78 153

Twister WB 1996 494500000 241721524 252800000 108 79 140

My Big Fat Greek Wedding IFC 2002 368700000 241438208 127300000 193 80 405

Pirates of the Caribbean: On Stranger Tides BV 2011 1043900000 241071802 802800000 11 81 6

Shrek Forever After P/DW 2010 752600000 238736787 513900000 46 82 36

Ghostbusters Col. 1984 291600000 238632124 0 303 83 0

Brave BV 2012 535400000 237283207 298100000 97 84 105

Beverly Hills Cop Par. 1984 316400000 234760478 0 261 85 0

X-Men: The Last Stand Fox 2006 459400000 234362462 225000000 127 86 180

War of the Worlds Par. 2005 591700000 234280354 357500000 77 87 78

Cast Away Fox 2000 429600000 233632142 196000000 147 88 228

The Exorcist WB 1973 441300000 232906145 208400000 140 89 205

The Lost World: Jurassic Park Uni. 1997 618600000 229086679 389600000 71 90 71

Signs BV 2002 408200000 227966634 180300000 160 91 268

Hancock Sony 2008 624400000 227946274 396400000 67 92 68

The Bourne Ultimatum Uni. 2007 442800000 227471070 215400000 138 93 192

Rush Hour 2 NL 2001 347300000 226164286 121200000 224 94 419

WALL-E BV 2008 521300000 223808164 297500000 101 95 106

National Treasure: Book of Secrets BV 2007 457400000 219964115 237400000 130 96 159

Alvin and the Chipmunks: The Squeakquel Fox 2009 443100000 219614612 223500000 137 97 181

Mrs. Doubtfire Fox 1993 441300000 219195243 222100000 141 98 184

Beauty and the Beast BV 1991 425000000 218967620 206000000 150 99 214

Ted Uni. 2012 547400000 218815487 328600000 91 100 94

King Kong Uni. 2005 550500000 218080025 332400000 90 101 90

Ghost Par. 1990 505700000 217631306 288100000 104 102 112

How to Train Your Dragon P/DW 2010 494900000 217581231 277300000 107 103 120

The Da Vinci Code Sony 2006 758200000 217536138 540700000 45 104 31

Aladdin BV 1992 504100000 217350219 286700000 105 105 114

Alvin and the Chipmunks Fox 2007 361300000 217326974 144000000 205 106 346

Saving Private Ryan DW 1998 481800000 216540909 265300000 115 107 134

Madagascar 3: Europe’s Most Wanted P/DW 2012 742100000 216391482 525700000 50 108 35

Kung Fu Panda P/DW 2008 631700000 215434591 416300000 64 109 62

Mission: Impossible II Par. 2000 546400000 215409889 331000000 92 110 91

X2: X-Men United Fox 2003 407700000 214949694 192800000 162 111 237

Dr. Seuss’ The Lorax Uni. 2012 348800000 214030500 134800000 222 112 383

Austin Powers in Goldmember NL 2002 296700000 213307889 0 295 113 0

300 WB 2007 456100000 210614939 245500000 132 114 149

Back to the Future Uni. 1985 381100000 210609762 170500000 179 115 291

Fast Five Uni. 2011 626100000 209837675 416300000 66 116 63

Mission: Impossible – Ghost Protocol Par. 2011 694700000 209397903 485300000 56 117 40

Wedding Crashers NL 2005 285200000 209255921 0 317 118 0

Sherlock Holmes WB 2009 524000000 209028679 315000000 100 119 97

Batman Begins WB 2005 374200000 206852432 167400000 184 120 293

Charlie and the Chocolate Factory WB 2005 475000000 206459076 268500000 120 121 129

Ratatouille BV 2007 623700000 206445654 417300000 70 122 60

Austin Powers: The Spy Who Shagged Me NL 1999 312000000 206040086 106000000 267 123 457

Terminator 2: Judgment Day TriS 1991 519800000 204843345 315000000 102 124 98

The Mummy Returns Uni. 2001 433000000 202019785 231000000 144 125 170

Armageddon BV 1998 553700000 201578182 352100000 89 126 81

Tangled BV 2010 590700000 200821936 389900000 78 127 70

Superman Returns WB 2006 391100000 200081192 191000000 171 128 240

Gone with the Wind MGM 1939 400200000 198676459 201500000 165 129 219

Pearl Harbor BV 2001 449200000 198542554 250700000 135 130 143

Monsters Vs. Aliens P/DW 2009 381500000 198351526 183200000 178 131 261

Happy Feet WB 2006 384300000 198000317 186300000 175 132 255

Indiana Jones and the Last Crusade Par. 1989 474200000 197171806 277000000 121 133 122

Ice Age: Dawn of the Dinosaurs Fox 2009 886700000 196573705 690100000 28 134 11

Ice Age: The Meltdown Fox 2006 655400000 195330621 460100000 61 135 49

Madagascar DW 2005 532700000 193595521 339100000 98 136 87

Twilight Sum. 2008 392600000 192769854 199800000 170 137 225

Toy Story BV 1995 362000000 191796233 170200000 203 138 292

Cars 2 BV 2011 559900000 191452396 368400000 87 139 74

Men in Black II Sony 2002 441800000 190418803 251400000 139 140 141

Grease Par. 1978 395000000 188755690 206200000 169 141 213

Wreck-It Ralph BV 2012 445800000 188745000 257100000 142 142 139

Gladiator DW 2000 457600000 187705427 269900000 129 143 128

Sherlock Holmes: A Game of Shadows WB 2011 543800000 186848418 357000000 94 144 79

The Day After Tomorrow Fox 2004 544300000 186740799 357500000 93 145 77

Mr. & Mrs. Smith Fox 2005 478200000 186336279 291900000 117 146 109

Snow White and the Seven Dwarfs Dis. 1937 0 184925486 0 0 147 0

Dances with Wolves Orion 1990 424200000 184208848 240000000 151 148 156

Batman Forever WB 1995 336500000 184031112 152500000 233 149 333

The Fugitive WB 1993 368900000 183875760 185000000 191 150 258

Ocean’s Eleven WB 2001 450700000 183417150 267300000 133 151 131

The Polar Express WB 2004 307500000 183373735 124100000 274 152 411

The Simpsons Movie Fox 2007 527100000 183135014 343900000 99 153 85

What Women Want Par. 2000 374100000 182811707 191300000 185 154 239

The Perfect Storm WB 2000 328700000 182618434 146100000 245 155 343

Lincoln BV 2012 261200000 181804000 0 355 156 0

Liar Liar Uni. 1997 302700000 181410615 121300000 281 157 418

Jurassic Park III Uni. 2001 368800000 181171875 187600000 192 158 248

Thor Par. 2011 449300000 181030624 268300000 134 159 130

Mission: Impossible Par. 1996 457700000 180981856 276700000 128 160 124

Planet of the Apes (2001) Fox 2001 362200000 180011740 182200000 202 161 263

Madagascar: Escape 2 Africa P/DW 2008 603900000 180010950 423900000 75 162 56

X-Men Origins: Wolverine Fox 2009 373100000 179883157 193200000 187 163 234

Indiana Jones and the Temple of Doom Par. 1984 333100000 179870271 153200000 238 164 331

Top Gun Par. 1986 356800000 179800601 177000000 209 165 273

Hitch Sony 2005 368100000 179495555 188600000 195 166 246

MIB 3 Sony 2012 624000000 179020854 445000000 68 167 51

Pretty Woman BV 1990 463400000 178406268 285000000 125 168 115

Oz The Great and Powerful BV 2013 356400000 177559000 178800000 264 169 271

Night at the Museum: Battle of the Smithsonian Fox 2009 413100000 177243721 235900000 157 170 165

Tootsie Col. 1982 0 177200000 0 0 171 0

Rise of the Planet of the Apes Fox 2011 481800000 176760185 305000000 116 172 102

Captain America: The First Avenger Par. 2011 368600000 176654505 192000000 194 173 238

The Karate Kid Sony 2010 359100000 176591618 182500000 206 174 262

There’s Something About Mary Fox 1998 369900000 176484651 193400000 190 175 233

Ice Age Fox 2002 383300000 176387405 206900000 177 176 210

The Bourne Supremacy Uni. 2004 288500000 176241941 112300000 309 177 441

Crocodile Dundee Par. 1986 328200000 174803506 153400000 246 178 329

Apollo 13 Uni. 1995 355200000 173837933 181400000 211 179 265

Home Alone 2: Lost in New York Fox 1992 359000000 173585516 185400000 207 180 257

Elf NL 2003 220400000 173398518 0 442 181 0

National Treasure BV 2004 347500000 173008894 174500000 223 182 279

Air Force One Sony 1997 315200000 172956409 142200000 262 183 355

Rain Man MGM 1988 354800000 172825435 182000000 212 184 264

Tron Legacy BV 2010 400100000 172062763 228000000 166 185 173

The Matrix WB 1999 463500000 171479930 292000000 124 186 108

True Grit Par. 2010 251100000 171243005 0 369 187 0

Tarzan BV 1999 448200000 171091819 277100000 136 188 121

A Beautiful Mind Uni. 2001 313500000 170742341 142800000 266 189 351

Chicago Mira. 2002 306800000 170687518 136100000 276 190 376

The Help BV 2011 211600000 169708112 0 480 191 0

Bridesmaids Uni. 2011 288400000 169106725 119300000 310 192 424

Quantum of Solace Sony 2008 586100000 168368427 417700000 80 193 59

Wild Hogs BV 2007 253600000 168273550 0 365 194 0

Three Men and a Baby BV 1987 0 167780960 0 0 195 0

Casino Royale Sony 2006 599000000 167445960 431600000 76 196 54

Meet the Parents Uni. 2000 330400000 166244045 164200000 242 197 301

2012 Sony 2009 769700000 166112167 603600000 44 198 23

Robin Hood: Prince of Thieves WB 1991 390500000 165493908 225000000 172 199 179

Kung Fu Panda 2 P/DW 2011 665700000 165249063 500400000 60 200 38

Hannibal MGM 2001 351700000 165092268 186600000 217 201 254

Catch Me If You Can DW 2002 352100000 164615351 187500000 216 202 250

The Proposal BV 2009 317400000 163958031 153400000 260 203 328

The Pursuit of Happyness Sony 2006 307100000 163566459 143500000 275 204 348

Big Daddy Sony 1999 234800000 163479795 0 408 205 0

Clash of the Titans (2010) WB 2010 493200000 163214888 330000000 109 206 92

Batman Returns WB 1992 266800000 162831698 104000000 339 207 462

A Bug’s Life BV 1998 363400000 162798565 200600000 199 208 222

Grown Ups Sony 2010 271400000 162001186 109400000 333 209 449

Django Unchained Wein. 2012 413000000 162001000 251000000 161 210 142

The Waterboy BV 1998 0 161491646 0 0 211 0

Ice Age: Continental Drift Fox 2012 877200000 161321843 715900000 30 212 9

Die Another Day MGM 2002 432000000 160942139 271000000 145 213 127

Shark Tale DW 2004 367300000 160861908 206400000 196 214 212

The Sound of Music Fox 1965 0 158671368 0 0 215 0

The Firm Par. 1993 270200000 158348367 111900000 334 216 443

The Longest Yard Par. 2005 0 158119460 0 0 217 0

X-Men Fox 2000 296300000 157299717 139000000 296 218 370

Scary Movie Mira. 2000 278000000 157019771 121000000 321 219 420

Fatal Attraction Par. 1987 320100000 156645693 163500000 258 220 302

Who Framed Roger Rabbit BV 1988 329800000 156452370 173400000 243 221 283

The Sting Uni. 1973 0 156000000 0 0 222 0

What Lies Beneath DW 2000 291400000 155464351 136000000 304 223 377

The Mummy Uni. 1999 415900000 155385488 260500000 153 224 138

Snow White and the Huntsman Uni. 2012 396600000 155332381 241300000 168 225 154

Fast and Furious Uni. 2009 363200000 155064265 208100000 200 226 206

Over the Hedge P/DW 2006 336000000 155019340 181000000 234 227 267

Fantastic Four Fox 2005 330600000 154696080 175900000 241 228 276

Dr. Seuss’ Horton Hears a Who! Fox 2008 297100000 154529439 142600000 293 229 352

Jerry Maguire Sony 1996 273600000 153952592 119600000 329 230 423

Beverly Hills Cop II Par. 1987 300000000 153665036 146300000 291 231 342

Scooby-Doo WB 2002 275700000 153294164 122400000 324 232 415

Gremlins WB 1984 0 153083102 0 0 233 0

Sex and the City WB (NL) 2008 415300000 152647258 262600000 155 234 137

Runaway Bride Par. 1999 309500000 152257509 157200000 272 235 318

Rambo: First Blood Part II TriS 1985 300400000 150415432 150000000 287 236 340

Terminator 3: Rise of the Machines WB 2003 433400000 150371112 283000000 143 237 118

G.I. Joe: The Rise of Cobra Par. 2009 302500000 150201498 152300000 282 238 334

Puss in Boots P/DW 2011 554700000 149260504 405400000 88 239 66

Knocked Up Uni. 2007 219100000 148768917 0 447 240 0

Les Miserables (2012) Uni. 2012 432900000 148578355 284300000 146 241 116

As Good as It Gets Sony 1997 314200000 148478011 165700000 265 242 297

Little Fockers Uni. 2010 310700000 148438600 162200000 269 243 307

Megamind P/DW 2010 321900000 148415853 173500000 252 244 281

Hotel Transylvania Sony 2012 345900000 148313048 197600000 227 245 226

Talladega Nights: The Ballad of Ricky Bobby Sony 2006 0 148213377 0 0 246 0

Gran Torino WB 2008 270000000 148095302 121900000 335 247 417

Lethal Weapon 2 WB 1989 227900000 147253986 0 421 248 0

X-Men: First Class Fox 2011 353600000 146408305 207200000 213 249 208

Paul Blart: Mall Cop Sony 2009 0 146336178 0 0 250 0

True Lies Fox 1994 378900000 146282411 232600000 181 251 168

Lilo & Stitch BV 2002 273100000 145794338 127300000 331 252 404

American Pie 2 Uni. 2001 287600000 145103595 142500000 314 253 354

Taken Fox 2009 226800000 145000989 0 426 254 0

101 Dalmatians Dis. 1961 215900000 144880014 0 457 255 0

The Santa Clause BV 1994 0 144833357 0 0 256 0

I, Robot Fox 2004 347200000 144801023 202400000 225 257 217

Lethal Weapon 3 WB 1992 321700000 144731527 177000000 253 258 274

The Fast and the Furious Uni. 2001 207300000 144533925 0 493 259 0

Doctor Dolittle Fox 1998 294500000 144156605 150300000 300 260 337

Mamma Mia! Uni. 2008 609800000 144130063 465700000 73 261 47

Rio Fox 2011 484600000 143619809 341000000 112 262 86

Juno FoxS 2007 231400000 143495265 0 414 263 0

Marley and Me Fox 2008 242700000 143153751 0 391 264 0

The Smurfs Sony 2011 563700000 142614158 421100000 85 265 57

XXX SonR 2002 277400000 142109382 135300000 322 266 379

The Jungle Book Dis. 1967 205800000 141843612 0 498 267 0

The Chronicles of Narnia: Prince Caspian BV 2008 419700000 141621490 278000000 152 268 119

National Lampoon’s Animal House Uni. 1978 0 141600000 0 0 269 0

Pocahontas BV 1995 346100000 141579773 204500000 226 270 216

A Few Good Men Col. 1992 243200000 141340178 101900000 388 271 471

Slumdog Millionaire FoxS 2008 377900000 141319928 236600000 182 272 162

Rush Hour NL 1998 244400000 141186864 103200000 387 273 465

The Blair Witch Project Art. 1999 248600000 140539099 108100000 376 274 452

Deep Impact Par. 1998 349500000 140464664 209000000 221 275 204

Rush Hour 3 NL 2007 258000000 140125968 117900000 359 276 429

Look Who’s Talking TriS 1989 297000000 140088813 156900000 294 277 320

Stuart Little Sony 1999 300100000 140035367 160100000 290 278 312

Taken 2 Fox 2012 376100000 139854287 236300000 183 279 163

Sister Act BV 1992 231600000 139605150 0 412 280 0

The Matrix Revolutions WB 2003 427300000 139313948 288000000 148 281 113

The Santa Clause 2 BV 2002 0 139236327 0 0 282 0

The King’s Speech Wein. 2010 414200000 138797449 275400000 156 283 125

Cheaper by the Dozen Fox 2003 0 138614544 0 0 284 0

Bad Boys II Sony 2003 273300000 138608444 134700000 330 285 385

Platoon Orion 1986 0 138530565 0 0 286 0

21 Jump Street Sony 2012 201600000 138447667 0 512 287 0

Good Will Hunting Mira. 1997 225900000 138433435 0 429 288 0

A Christmas Carol (2009) BV 2009 325300000 137855863 187400000 251 289 251

Dinosaur BV 2000 349800000 137748063 212100000 220 290 195

Click SonR 2006 237700000 137355633 100300000 398 291 475

The Green Mile WB 1999 286800000 136801374 150000000 315 292 338

Ransom BV 1996 309500000 136492681 173000000 271 293 284

Godzilla Sony 1998 379000000 136314294 242700000 180 294 152

101 Dalmatians (1996) BV 1996 320700000 136189294 184500000 257 295 259

Anger Management SonR 2003 0 135645823 0 0 296 0

Chicken Little BV 2005 314400000 135386665 179000000 263 297 270

Argo WB 2012 227700000 135376835 0 424 298 0

Teenage Mutant Ninja Turtles NL 1990 202000000 135265915 0 509 299 0

Patch Adams Uni. 1998 202300000 135026902 0 507 300 0

The Godfather Par. 1972 245100000 134966411 110100000 385 301 448

The Incredible Hulk Uni. 2008 263400000 134806913 128600000 348 302 400

Live Free or Die Hard Fox 2007 383500000 134529403 249000000 176 303 144

Wanted Uni. 2008 341400000 134508551 206900000 231 304 209

Superman WB 1978 300200000 134218018 166000000 289 305 295

The Rock BV 1996 335100000 134069511 201000000 236 306 220

Mission: Impossible III Par. 2006 397900000 134029801 263800000 167 307 136

Troy WB 2004 497400000 133378256 364000000 106 308 75

Angels & Demons Sony 2009 485900000 133375846 352600000 110 309 80

Alvin and the Chipmunks: Chipwrecked Fox 2011 342700000 133110742 209600000 229 310 203

Bringing Down the House BV 2003 0 132716677 0 0 311 0

The Departed WB 2006 289800000 132384315 157500000 305 312 316

Hulk Uni. 2003 245400000 132177234 113200000 383 313 439

Close Encounters of the Third Kind Col. 1977 303800000 132088635 171700000 278 314 287

Minority Report Fox 2002 358400000 132072926 226300000 208 315 175

Fantastic Four: Rise of the Silver Surfer Fox 2007 289000000 131921738 157100000 307 316 319

The Last Airbender Par. 2010 319700000 131772187 187900000 259 317 247

Lara Croft: Tomb Raider Par. 2001 274700000 131168070 143500000 326 318 347

The Silence of the Lambs Orion 1991 272700000 130742922 142000000 332 319 357

Honey, I Shrunk the Kids BV 1989 222700000 130724172 0 436 320 0

The Flintstones Uni. 1994 341600000 130531208 211100000 230 321 197

Lethal Weapon 4 WB 1998 285400000 130444603 155000000 316 322 324

Get Smart WB 2008 230700000 130319208 100400000 416 323 474

American Gangster Uni. 2007 266500000 130164645 136300000 343 324 375

American Beauty DW 1999 356300000 130096601 226200000 210 325 176

An Officer and a Gentleman Par. 1982 0 129795554 0 0 326 0

The Ring DW 2002 249300000 129128133 120200000 375 327 421

The Nutty Professor (1996) Uni. 1996 274000000 128814019 145100000 328 328 344

Borat: Cultural Learnings of America for Make Benefit Glorious Nation of Kazakhstan Fox 2006 261600000 128505958 133100000 352 329 389

Robots Fox 2005 260700000 128200012 132500000 356 330 392

Coming to America Par. 1988 288800000 128152301 160600000 308 331 310

Crouching Tiger, Hidden Dragon SPC 2000 213500000 128078872 0 470 332 0

Shutter Island Par. 2010 294800000 128012934 166800000 299 333 294

Rocky IV UA 1985 300500000 127873716 172600000 285 334 285

Enchanted BV 2007 340500000 127807262 212700000 232 335 194

Identity Thief Uni. 2013 0 127727000 0 0 336 0

The Curious Case of Benjamin Button Par. 2008 333900000 127509326 206400000 237 337 211

Sweet Home Alabama BV 2002 0 127223418 0 0 338 0

Silver Linings Playbook Wein. 2012 216000000 127199000 0 455 339 0

Dumb and Dumber NL 1994 247300000 127175374 120100000 378 340 422

2 Fast 2 Furious Uni. 2003 236400000 127154901 109200000 402 341 450

My Best Friend’s Wedding Sony 1997 299300000 127120029 172200000 292 342 286

Super 8 Par. 2011 259900000 127004179 132900000 357 343 390

The World Is Not Enough MGM 1999 361800000 126943684 234900000 204 344 167

Smokey and the Bandit Uni. 1977 0 126737428 0 0 345 0

Sleepless in Seattle TriS 1993 227800000 126680884 101100000 423 346 473

Bee Movie P/DW 2007 287600000 126631277 161000000 313 347 309

Prometheus Fox 2012 403400000 126477084 276900000 163 348 123

Safe House Uni. 2012 208100000 126373434 0 490 349 0

Mr. Deeds Sony 2002 0 126293452 0 0 350 0

The Truman Show Par. 1998 264100000 125618201 138500000 345 351 372

Erin Brockovich Uni. 2000 256300000 125595205 130700000 362 352 395

Ocean’s Twelve WB 2004 362700000 125544280 237200000 201 353 161

Terminator Salvation WB 2009 371400000 125322469 246000000 189 354 147

Charlie’s Angels Sony 2000 264100000 125305545 138800000 346 355 371

Tomorrow Never Dies MGM 1997 333000000 125304276 207700000 239 356 207

Rocky III UA 1982 0 125049125 0 0 357 0

The Vow SGem 2012 0 125014030 0 0 358 0

Cloudy with a Chance of Meatballs Sony 2009 243000000 124870275 118100000 389 359 426

The Devil Wears Prada Fox 2006 326600000 124740460 201800000 248 360 218

Something’s Gotta Give Sony 2003 266700000 124728738 142000000 340 361 358

Traffic USA 2000 207500000 124115725 0 492 362 0

The Birdcage MGM 1996 0 124060553 0 0 363 0

City Slickers Col. 1991 0 124033791 0 0 364 0

Good Morning, Vietnam BV 1987 0 123922370 0 0 365 0

Rango Par. 2011 245400000 123477607 121900000 382 366 416

The Nutty Professor II: The Klumps Uni. 2000 0 123309890 0 0 367 0

Life of Pi Fox 2012 604400000 122527000 481900000 74 368 41

Clear and Present Danger Par. 1994 215900000 122187717 0 456 369 0

The Hunt for Red October Par. 1990 200500000 122012643 0 516 370 0

The Bodyguard WB 1992 411000000 122006740 289000000 159 371 111

Wayne’s World Par. 1992 0 121697323 0 0 372 0

The Bourne Identity Uni. 2002 214000000 121661683 0 465 373 0

Superbad Sony 2007 0 121463226 0 0 374 0

Speed Fox 1994 350400000 121248145 229200000 219 375 172

50 First Dates Sony 2004 0 120908074 0 0 376 0

Mulan BV 1998 304300000 120620254 183700000 277 377 260

Inglourious Basterds Wein. 2009 321500000 120540719 200900000 255 378 221

Seabiscuit Uni. 2003 0 120277854 0 0 379 0

Van Helsing Uni. 2004 300300000 120177084 180100000 288 380 269

Four Christmases WB (NL) 2008 0 120146040 0 0 381 0

I Now Pronounce You Chuck and Larry Uni. 2007 0 120059556 0 0 382 0

The Mask NL 1994 351600000 119938730 231600000 218 383 169

Hook TriS 1991 300900000 119654823 181200000 284 384 266

Walk the Line Fox 2005 0 119519402 0 0 385 0

Blazing Saddles WB 1974 0 119500000 0 0 386 0

G-Force BV 2009 292800000 119436770 173400000 302 387 282

Total Recall Sony 1990 261300000 119412921 141900000 353 388 360

On Golden Pond Uni. 1981 0 119285432 0 0 389 0

The Other Guys Sony 2010 0 119219978 0 0 390 0

Fahrenheit 9/11 Lions 2004 222400000 119194771 103300000 437 391 463

The Sum of All Fears Par. 2002 0 118907036 0 0 392 0

Hairspray (2007) NL 2007 202500000 118871849 0 506 393 0

The Break-Up Uni. 2006 205000000 118703275 0 502 394 0

Lemony Snicket’s A Series of Unfortunate Events Par. 2004 209100000 118634549 0 489 395 0

Blades of Glory P/DW 2007 0 118594548 0 0 396 0

Back to the Future Part II Uni. 1989 332000000 118450002 213500000 240 397 193

Salt Sony 2010 293500000 118311368 175200000 301 398 277

Basic Instinct TriS 1992 352900000 117727224 235200000 214 399 166

Big Momma’s House Fox 2000 0 117559438 0 0 400 0

Die Hard 2: Die Harder Fox 1990 240000000 117540947 122500000 394 401 414

Horrible Bosses WB (NL) 2011 209600000 117538559 0 487 402 0

Rocky UA 1976 0 117235147 0 0 403 0

Jackass 3-D Par. 2010 0 117229692 0 0 404 0

Ocean’s Thirteen WB 2007 311300000 117154724 194200000 268 405 232

S.W.A.T. Sony 2003 207700000 116934650 0 491 406 0

8 Mile Uni. 2002 242900000 116750901 126100000 390 407 407

Double Jeopardy Par. 1999 0 116741558 0 0 408 0

Green Lantern WB 2011 219900000 116601172 103300000 443 409 464

Notting Hill Uni. 1999 363900000 116089678 247800000 198 410 146

The Towering Inferno Fox 1974 0 116000000 0 0 411 0

You’ve Got Mail WB 1998 250800000 115821495 135000000 370 412 380

Ghost Rider Sony 2007 228700000 115802596 112900000 420 413 440

Remember the Titans BV 2000 0 115654751 0 0 414 0

District 9 TriS 2009 210800000 115646235 0 483 415 0

The Karate Kid Part II Col. 1986 0 115103979 0 0 416 0

American Graffiti Uni. 1973 0 115000000 0 0 417 0

Big Fox 1988 0 114968774 0 0 418 0

DodgeBall: A True Underdog Story Fox 2004 0 114326736 0 0 419 0

The Village BV 2004 256700000 114197520 142500000 361 420 353

Bolt BV 2008 310000000 114053579 195900000 270 421 229

Wild Wild West WB 1999 222100000 113804681 108300000 439 422 451

Magic Mike WB 2012 0 113721571 0 0 423 0

The Addams Family Par. 1991 0 113502426 0 0 424 0

The Patriot Sony 2000 215300000 113330342 102000000 461 425 470

The Bourne Legacy Uni. 2012 276100000 113203870 162900000 323 426 303

The Pacifier BV 2005 0 113086868 0 0 427 0

Dr. Dolittle 2 Fox 2001 0 112952899 0 0 428 0

The Rocky Horror Picture Show Fox 1975 0 112892319 0 0 429 0

It’s Complicated Uni. 2009 219100000 112735375 106400000 446 430 454

Spy Kids Mira. 2001 0 112719001 0 0 431 0

Ghostbusters II Col. 1989 215400000 112494738 102900000 460 432 467

Face/Off Par. 1997 245700000 112276146 133400000 381 433 387

Twins Uni. 1988 216600000 111938388 104700000 451 434 460

Spy Kids 3D: Game Over Dim. 2003 0 111761982 0 0 435 0

Doctor Zhivago MGM 1965 0 111721910 0 0 436 0

Enemy of the State BV 1998 250600000 111549836 139100000 371 437 368

The Little Mermaid BV 1989 211300000 111543479 0 481 438 0

Porky’s Fox 1982 0 111289673 0 0 439 0

The Last Samurai WB 2003 456800000 111127263 345600000 131 440 84

Tropic Thunder P/DW 2008 0 110515313 0 0 441 0

Valentine’s Day WB 2010 216500000 110485654 106000000 453 442 455

The Grudge Sony 2004 0 110359362 0 0 443 0

Fun with Dick and Jane Sony 2005 202000000 110332737 0 508 444 0

Freaky Friday BV 2003 0 110230332 0 0 445 0

Bedtime Stories BV 2008 212900000 110101975 102800000 471 446 468

Scary Movie 3 Dim. 2003 220700000 110003217 110700000 441 447 446

Star Trek IV: The Voyage Home Par. 1986 0 109713132 0 0 448 0

The 40-Year-Old Virgin Uni. 2005 0 109449237 0 0 449 0

Crocodile Dundee II Par. 1988 239600000 109306210 130300000 395 450 396

Couples Retreat Uni. 2009 0 109204945 0 0 451 0

One Flew Over the Cuckoo’s Nest UA 1975 0 108981275 0 0 452 0

A Time to Kill WB 1996 0 108766007 0 0 453 0

Black Hawk Down SonR 2001 0 108638745 0 0 454 0

Terms of Endearment Par. 1983 0 108423489 0 0 455 0

Ace Ventura: When Nature Calls WB 1995 212400000 108385533 104000000 474 456 461

The Princess Diaries BV 2001 0 108248956 0 0 457 0

Superman II WB 1981 0 108185706 0 0 458 0

Hop Uni. 2011 0 108085305 0 0 459 0

Pulp Fiction Mira. 1994 213900000 107928762 106000000 468 460 456

Paranormal Activity Par. 2009 0 107918810 0 0 461 0

A League of Their Own Sony 1992 0 107533928 0 0 462 0

Watchmen WB 2009 0 107509799 0 0 463 0

Batman and Robin WB 1997 238200000 107325195 130900000 397 464 394

Black Swan FoxS 2010 329400000 106954678 222400000 244 465 182

Analyze This WB 1999 0 106885658 0 0 466 0

Chicken Run DW 2000 224800000 106834564 118000000 431 467 428

Miss Congeniality WB 2000 212700000 106807667 105900000 472 468 458

Indecent Proposal Par. 1993 266600000 106614059 160000000 341 469 313

Driving Miss Daisy WB 1989 0 106593296 0 0 470 0

GoldenEye MGM 1995 352200000 106429941 245800000 215 471 148

Love Story Par. 1970 0 106397186 0 0 472 0

Kramer Vs. Kramer Col. 1979 0 106260000 0 0 473 0

The Italian Job Par. 2003 0 106128601 0 0 474 0

How to Lose a Guy in 10 Days Par. 2003 0 105813373 0 0 475 0

The First Wives Club Par. 1996 0 105489203 0 0 476 0

Robin Hood Uni. 2010 321700000 105269730 216400000 254 477 190

Interview with the Vampire WB 1994 223700000 105264608 118400000 433 478 425

George of the Jungle BV 1997 0 105263257 0 0 479 0

The Graduate AVCO 1967 0 104945305 0 0 480 0

Phenomenon BV 1996 0 104636382 0 0 481 0

American Wedding Uni. 2003 231400000 104565114 126900000 413 482 406

Road to Perdition DW 2002 0 104454762 0 0 483 0

The Princess and the Frog BV 2009 267000000 104400899 162600000 338 484 304

The Chronicles of Narnia: The Voyage of the Dawn Treader Fox 2010 415700000 104386950 311300000 154 485 101

Daddy Day Care SonR 2003 0 104297061 0 0 486 0

Paranormal Activity 3 Par. 2011 207000000 104028807 103000000 494 487 466

Journey 2: The Mysterious Island WB 2012 325900000 103860290 222000000 249 488 185

Dick Tracy BV 1990 0 103738726 0 0 489 0

Dreamgirls P/DW 2006 0 103365956 0 0 490 0

9 to 5 Fox 1980 0 103290500 0 0 491 0

Rise of the Guardians P/DW 2012 303500000 103174000 200300000 279 492 223

The Expendables LGF 2010 274500000 103068524 171400000 327 493 289

Scream Dim. 1996 0 103046663 0 0 494 0

Just Go With It Sony 2011 214900000 103028109 111900000 463 495 442

The General’s Daughter Par. 1999 0 102705852 0 0 496 0

The Aviator Mira. 2004 213700000 102610330 111100000 469 497 445

American Pie Uni. 1999 235500000 102561004 132900000 405 498 391

Daredevil Fox 2003 0 102543518 0 0 499 0

The Girl with the Dragon Tattoo (2011) Sony 2011 232600000 102515793 130100000 410 500 397

The Mummy: Tomb of the Dragon Emperor Uni. 2008 401100000 102491776 298600000 164 501 104

In the Line of Fire Col. 1993 0 102314823 0 0 502 0

Butch Cassidy and the Sundance Kid Fox 1969 0 102308889 0 0 503 0

Mary Poppins Dis. 1964 0 102272727 0 0 504 0

Bambi RKO 1942 267400000 102247150 165200000 337 505 298

Journey to the Center of the Earth WB (NL) 2008 242000000 101704370 140300000 393 506 364

Gone in 60 Seconds BV 2000 237200000 101648571 135600000 400 507 378

Maverick WB 1994 0 101631272 0 0 508 0

Sleeping with the Enemy Fox 1991 0 101599005 0 0 509 0

Eagle Eye P/DW 2008 0 101440743 0 0 510 0

The Prince of Egypt DW 1998 218600000 101413188 117200000 448 511 430

Scream 2 Dim. 1997 0 101363301 0 0 512 0

Stir Crazy Col. 1980 0 101300000 0 0 513 0

Eraser WB 1996 242300000 101295562 141000000 392 514 363

Unforgiven WB 1992 0 101157447 0 0 515 0

The Cat in the Hat Uni. 2003 0 101149285 0 0 516 0

Con Air BV 1997 224000000 101117573 122900000 432 517 413

Sleepy Hollow Par. 1999 206100000 101071502 105000000 497 518 459

Collateral DW 2004 217800000 101005703 116800000 449 519 433

Contact WB 1997 0 100920329 0 0 520 0

Charlie’s Angels: Full Throttle Sony 2003 259200000 100830111 158300000 358 521 315

The Pelican Brief WB 1993 0 100768056 0 0 522 0

Vanilla Sky Par. 2001 203400000 100618344 102800000 505 523 469

Due Date WB 2010 211800000 100539043 111200000 478 524 444

The Rugrats Movie Par. 1998 0 100494675 0 0 525 0

Million Dollar Baby WB 2004 216800000 100492203 116300000 450 526 435

Airport Uni. 1970 0 100489151 0 0 527 0

Jumanji Sony 1995 262800000 100475249 162300000 349 528 306

Step Brothers Sony 2008 0 100468793 0 0 529 0

Evan Almighty Uni. 2007 0 100462298 0 0 530 0

Casper Uni. 1995 287900000 100328194 187600000 312 531 249

Shakespeare in Love Mira. 1998 289300000 100317794 189000000 306 532 245

Bad Teacher Sony 2011 216200000 100292856 115900000 454 533 437

Yogi Bear WB 2010 201600000 100246011 101300000 513 534 472

Cowboys & Aliens Uni. 2011 0 100240551 0 0 535 0

The Hunchback of Notre Dame BV 1996 325300000 100138851 225200000 250 536 178

Seven NL 1995 327300000 100125643 227200000 247 537 174

Parenthood Uni. 1989 0 100047830 0 0 538 0

You Don’t Mess with the Zohan Sony 2008 0 100018837 0 0 539 0

Die Hard: With A Vengeance Fox 1995 366100000 100012499 266100000 197 540 133

10,000 B.C. WB 2008 269800000 0 175000000 336 0 278

A Good Day to Die Hard Fox 2013 285400000 0 219100000 342 0 186

A.I. Artificial Intelligence WB 2001 235900000 0 157300000 403 0 317

American Reunion Uni. 2012 235000000 0 178000000 407 0 272

Australia Fox 2008 211300000 0 161800000 482 0 308

Babe Uni. 1995 254100000 0 190500000 364 0 242

Back to the Future Part III Uni. 1990 244500000 0 156800000 386 0 321

Battle: Los Angeles Sony 2011 211800000 0 128300000 477 0 401

Battleship Uni. 2012 303000000 0 237600000 280 0 158

Bean Gram. 1997 251200000 0 205900000 368 0 215

Bram Stoker’s Dracula Col. 1992 215900000 0 133300000 458 0 388

Braveheart Par. 1995 210400000 0 134800000 484 0 384

Bridget Jones: The Edge of Reason Uni. 2004 262500000 0 222300000 350 0 183

Bridget Jones’s Diary Mira. 2001 281900000 0 210400000 319 0 200

Brother Bear BV 2003 250400000 0 165100000 372 0 299

Cats & Dogs WB 2001 200700000 0 107300000 515 0 453

Cliffhanger TriS 1993 255000000 0 171000000 363 0 290

Constantine WB 2005 230900000 0 154900000 415 0 325

Dark Shadows WB 2012 239100000 0 159400000 396 0 314

Dead Poets Society BV 1989 235900000 0 140000000 404 0 365

Dirty Dancing Vest 1987 214000000 0 150000000 467 0 339

Disclosure WB 1994 214000000 0 131000000 466 0 393

Eat Pray Love Sony 2010 204600000 0 124000000 503 0 412

End of Days Uni. 1999 212000000 0 145100000 476 0 345

Entrapment Fox 1999 212400000 0 124700000 473 0 410

Eragon Fox 2006 249500000 0 174500000 374 0 280

Flightplan BV 2005 223400000 0 133700000 434 0 386

Four Weddings and a Funeral Gram. 1994 245700000 0 193000000 380 0 236

Garfield: The Movie Fox 2004 200800000 0 125400000 514 0 409

Gulliver’s Travels Fox 2010 237400000 0 194600000 399 0 230

Hansel and Gretel: Witch Hunters Par. 2013 211700000 0 156800000 496 0 322

Hercules BV 1997 252700000 0 153600000 367 0 327

High School Musical 3: Senior Year BV 2008 252900000 0 162300000 366 0 305

Howl’s Moving Castle BV 2005 235200000 0 230500000 406 0 171

Immortals Rela. 2011 226900000 0 143400000 425 0 349

Jack Reacher Par. 2012 216600000 0 136500000 452 0 374

JFK WB 1991 205400000 0 135000000 499 0 382

John Carter BV 2012 282800000 0 209700000 318 0 202

Jumper Fox 2008 222200000 0 142100000 438 0 356

Kindergarten Cop Uni. 1990 202000000 0 110500000 510 0 447

King Arthur BV 2004 203600000 0 151700000 504 0 336

Kingdom of Heaven Fox 2005 211700000 0 164300000 479 0 300

Knight & Day Fox 2010 261900000 0 185500000 351 0 256

Life Is Beautiful Mira. 1998 229200000 0 171600000 419 0 288

Love Actually Uni. 2003 246900000 0 187200000 379 0 252

Master and Commander: The Far Side of the World Fox 2003 212000000 0 118100000 475 0 427

Michael Jackson’s This Is It Sony 2009 261200000 0 189100000 354 0 244

Moonraker MGM 1979 210300000 0 140000000 485 0 367

Mr. Bean’s Holiday Uni. 2007 229700000 0 196400000 418 0 227

Percy Jackson & The Olympians: The Lightning Thief Fox 2010 226500000 0 137700000 427 0 373

Philadelphia TriS 1993 206700000 0 129200000 495 0 398

Ponyo BV 2009 201800000 0 186700000 511 0 253

Presumed Innocent WB 1990 221300000 0 135000000 440 0 381

Prince of Persia: The Sands of Time BV 2010 335200000 0 244400000 235 0 151

Public Enemies Uni. 2009 214100000 0 117000000 464 0 432

Real Steel BV 2011 295500000 0 210000000 298 0 201

Red Dragon Uni. 2002 209200000 0 116000000 488 0 436

Resident Evil: Afterlife SGem 2010 296200000 0 236100000 297 0 164

Resident Evil: Retribution SGem 2012 236600000 0 194300000 428 0 231

Saturday Night Fever Par. 1977 237100000 0 142900000 401 0 350

Schindler’s List Uni. 1993 321300000 0 225200000 256 0 177

Sex and the City 2 WB (NL) 2010 288300000 0 193000000 311 0 235

Space Jam WB 1996 230400000 0 140000000 417 0 366

Spirited Away BV 2002 274900000 0 264900000 325 0 135

The Adventures of Tintin Par. 2011 374000000 0 296400000 186 0 107

The Day the Earth Stood Still (2008) Fox 2008 233100000 0 153700000 409 0 326

The English Patient Mira. 1996 232000000 0 153300000 411 0 330

The Expendables 2 LGF 2012 300400000 0 215400000 286 0 191

The Fifth Element Sony 1997 263900000 0 200100000 347 0 224

The Full Monty FoxS 1997 257900000 0 212000000 360 0 196

The Golden Compass NL 2007 372200000 0 302100000 188 0 103

The Green Hornet Sony 2011 227800000 0 129000000 422 0 399

The Holiday Sony 2006 205100000 0 141900000 501 0 359

The Intouchables Wein. 2012 426600000 0 416400000 149 0 61

The Mask of Zorro Sony 1998 250300000 0 156200000 373 0 323

The Others Mira. 2001 209900000 0 113400000 486 0 438

The Social Network Sony 2010 224900000 0 128000000 430 0 402

The Sorcerer’s Apprentice BV 2010 215300000 0 152100000 462 0 335

The Terminal DW 2004 219400000 0 141500000 444 0 362

The Tourist Sony 2010 278300000 0 210700000 320 0 198

The Ugly Truth Sony 2009 205300000 0 116400000 500 0 434

Unbreakable BV 2000 248100000 0 153100000 377 0 332

Valkyrie UA 2008 200300000 0 117200000 517 0 431

Vertical Limit Sony 2000 215700000 0 146400000 459 0 341

Waterworld Uni. 1995 264200000 0 176000000 344 0 275

Welcome to the Sticks N/A 2008 245100000 0 245100000 384 0 150

What Happens in Vegas Fox 2008 219400000 0 139100000 445 0 369

Wrath of the Titans WB 2012 302000000 0 218300000 283 0 187

Yes Man WB 2008 223200000 0 125600000 435 0 408

Assignment 4 Solution/Assignment 4 Solution/Debug/Assignment 4 Solution.Build.CppClean.log
C:\CDM\CSC 262\262 SOLUTIONS\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\ASSIGNMENT 4 SOLUTION.EXE.EMBED.MANIFEST
C:\CDM\CSC 262\262 SOLUTIONS\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\ASSIGNMENT 4 SOLUTION.EXE.EMBED.MANIFEST.RES
C:\CDM\CSC 262\262 SOLUTIONS\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\ASSIGNMENT 4 SOLUTION.EXE.INTERMEDIATE.MANIFEST
C:\CDM\CSC 262\262 SOLUTIONS\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\MOVIE.OBJ
C:\CDM\CSC 262\262 SOLUTIONS\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\MOVIEINFOAPP.OBJ
C:\CDM\CSC 262\262 SOLUTIONS\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\MOVIES.OBJ
C:\CDM\CSC 262\262 SOLUTIONS\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\VC100.PDB
C:\CDM\CSC 262\262 SOLUTIONS\ASSIGNMENT 4 SOLUTION\DEBUG\ASSIGNMENT 4 SOLUTION.EXE
C:\CDM\CSC 262\262 SOLUTIONS\ASSIGNMENT 4 SOLUTION\DEBUG\ASSIGNMENT 4 SOLUTION.ILK
C:\CDM\CSC 262\262 SOLUTIONS\ASSIGNMENT 4 SOLUTION\DEBUG\ASSIGNMENT 4 SOLUTION.PDB
C:\Temp\Assignment 4 Solution\Assignment 4 Solution\Debug\Assignment 4 Solution.exe.embed.manifest
C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\ASSIGNMENT 4 SOLUTION.EXE.EMBED.MANIFEST.RES
C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\ASSIGNMENT 4 SOLUTION.EXE.INTERMEDIATE.MANIFEST
C:\Temp\Assignment 4 Solution\Assignment 4 Solution\Debug\Assignment 4 Solution_manifest.rc
C:\Temp\Assignment 4 Solution\Assignment 4 Solution\Debug\cl.command.1.tlog
C:\Temp\Assignment 4 Solution\Assignment 4 Solution\Debug\CL.read.1.tlog
C:\Temp\Assignment 4 Solution\Assignment 4 Solution\Debug\CL.write.1.tlog
C:\Temp\Assignment 4 Solution\Assignment 4 Solution\Debug\link.4852.read.1.tlog
C:\Temp\Assignment 4 Solution\Assignment 4 Solution\Debug\link.4852.write.1.tlog
C:\Temp\Assignment 4 Solution\Assignment 4 Solution\Debug\link.4852-cvtres.read.1.tlog
C:\Temp\Assignment 4 Solution\Assignment 4 Solution\Debug\link.4852-cvtres.write.1.tlog
C:\Temp\Assignment 4 Solution\Assignment 4 Solution\Debug\link.command.1.tlog
C:\Temp\Assignment 4 Solution\Assignment 4 Solution\Debug\link.read.1.tlog
C:\Temp\Assignment 4 Solution\Assignment 4 Solution\Debug\link.write.1.tlog
C:\Temp\Assignment 4 Solution\Assignment 4 Solution\Debug\link-cvtres.read.1.tlog
C:\Temp\Assignment 4 Solution\Assignment 4 Solution\Debug\link-cvtres.write.1.tlog
C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\MOVIE.OBJ
C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\MOVIEINFOAPP.OBJ
C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\MOVIES.OBJ
C:\Temp\Assignment 4 Solution\Assignment 4 Solution\Debug\mt.command.1.tlog
C:\Temp\Assignment 4 Solution\Assignment 4 Solution\Debug\mt.read.1.tlog
C:\Temp\Assignment 4 Solution\Assignment 4 Solution\Debug\mt.write.1.tlog
C:\Temp\Assignment 4 Solution\Assignment 4 Solution\Debug\rc.command.1.tlog
C:\Temp\Assignment 4 Solution\Assignment 4 Solution\Debug\rc.read.1.tlog
C:\Temp\Assignment 4 Solution\Assignment 4 Solution\Debug\rc.write.1.tlog
C:\Temp\Assignment 4 Solution\Assignment 4 Solution\Debug\vc100.idb
C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\VC100.PDB
C:\TEMP\ASSIGNMENT 4 SOLUTION\DEBUG\ASSIGNMENT 4 SOLUTION.EXE
C:\TEMP\ASSIGNMENT 4 SOLUTION\DEBUG\ASSIGNMENT 4 SOLUTION.ILK
C:\TEMP\ASSIGNMENT 4 SOLUTION\DEBUG\ASSIGNMENT 4 SOLUTION.PDB

Assignment 4 Solution/Assignment 4 Solution/Debug/Assignment 4 Solution.exe.embed.manifest

Assignment 4 Solution/Assignment 4 Solution/Debug/Assignment 4 Solution.exe.embed.manifest.res

Assignment 4 Solution/Assignment 4 Solution/Debug/Assignment 4 Solution.exe.intermediate.manifest

Assignment 4 Solution/Assignment 4 Solution/Debug/Assignment 4 Solution.lastbuildstate
#v4.0:v100:false
Debug|Win32|C:\Temp\Assignment 4 Solution\|

Assignment 4 Solution/Assignment 4 Solution/Debug/Assignment 4 Solution.log
Build started 4/30/2013 11:38:13 AM.
1>Project “C:\Temp\Assignment 4 Solution\Assignment 4 Solution\Assignment 4 Solution.vcxproj” on node 2 (rebuild target(s)).
1>_PrepareForClean:
Deleting file “Debug\Assignment 4 Solution.lastbuildstate”.
InitializeBuildStatus:
Creating “Debug\Assignment 4 Solution.unsuccessfulbuild” because “AlwaysCreate” was specified.
ClCompile:
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /ZI /nologo /W3 /WX- /Od /Oy- /D WIN32 /D _DEBUG /D _CONSOLE /D _UNICODE /D UNICODE /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo”Debug\\” /Fd”Debug\vc100.pdb” /Gd /TP /analyze- /errorReport:prompt Movie.cpp MovieInfoApp.cpp Movies.cpp
Movies.cpp
MovieInfoApp.cpp
Movie.cpp
Generating Code…
ManifestResourceCompile:
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\rc.exe /nologo /fo”Debug\Assignment 4 Solution.exe.embed.manifest.res” “Debug\Assignment 4 Solution_manifest.rc”
Link:
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:”C:\Temp\Assignment 4 Solution\Debug\Assignment 4 Solution.exe” /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /ManifestFile:”Debug\Assignment 4 Solution.exe.intermediate.manifest” /MANIFESTUAC:”level=’asInvoker’ uiAccess=’false'” /DEBUG /PDB:”C:\Temp\Assignment 4 Solution\Debug\Assignment 4 Solution.pdb” /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:”C:\Temp\Assignment 4 Solution\Debug\Assignment 4 Solution.lib” /MACHINE:X86 “Debug\Assignment 4 Solution.exe.embed.manifest.res”
Debug\Movie.obj
Debug\MovieInfoApp.obj
Debug\Movies.obj
Manifest:
Deleting file “Debug\Assignment 4 Solution.exe.embed.manifest”.
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\mt.exe /nologo /verbose /out:”Debug\Assignment 4 Solution.exe.embed.manifest” /manifest “Debug\Assignment 4 Solution.exe.intermediate.manifest”
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\rc.exe /nologo /fo”Debug\Assignment 4 Solution.exe.embed.manifest.res” “Debug\Assignment 4 Solution_manifest.rc”
LinkEmbedManifest:
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:”C:\Temp\Assignment 4 Solution\Debug\Assignment 4 Solution.exe” /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /ManifestFile:”Debug\Assignment 4 Solution.exe.intermediate.manifest” /MANIFESTUAC:”level=’asInvoker’ uiAccess=’false'” /DEBUG /PDB:”C:\Temp\Assignment 4 Solution\Debug\Assignment 4 Solution.pdb” /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:”C:\Temp\Assignment 4 Solution\Debug\Assignment 4 Solution.lib” /MACHINE:X86 “Debug\Assignment 4 Solution.exe.embed.manifest.res”
Debug\Movie.obj
Debug\MovieInfoApp.obj
Debug\Movies.obj
Assignment 4 Solution.vcxproj -> C:\Temp\Assignment 4 Solution\Debug\Assignment 4 Solution.exe
FinalizeBuildStatus:
Deleting file “Debug\Assignment 4 Solution.unsuccessfulbuild”.
Touching “Debug\Assignment 4 Solution.lastbuildstate”.
1>Done Building Project “C:\Temp\Assignment 4 Solution\Assignment 4 Solution\Assignment 4 Solution.vcxproj” (rebuild target(s)).
Build succeeded.
Time Elapsed 00:00:02.64

Assignment 4 Solution/Assignment 4 Solution/Debug/Assignment 4 Solution_manifest.rc
1 /* CREATEPROCESS_MANIFEST_RESOURCE_ID */ 24 /* RT_MANIFEST */ “Debug\\Assignment 4 Solution.exe.embed.manifest”

Assignment 4 Solution/Assignment 4 Solution/Debug/cl.command.1.tlog
^C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\MOVIE.CPP
/c /ZI /nologo /W3 /WX- /Od /Oy- /D WIN32 /D _DEBUG /D _CONSOLE /D _UNICODE /D UNICODE /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo”Debug\\” /Fd”Debug\vc100.pdb” /Gd /TP /analyze- /errorReport:prompt C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\MOVIE.CPP
^C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\MOVIEINFOAPP.CPP
/c /ZI /nologo /W3 /WX- /Od /Oy- /D WIN32 /D _DEBUG /D _CONSOLE /D _UNICODE /D UNICODE /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo”Debug\\” /Fd”Debug\vc100.pdb” /Gd /TP /analyze- /errorReport:prompt C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\MOVIEINFOAPP.CPP
^C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\MOVIES.CPP
/c /ZI /nologo /W3 /WX- /Od /Oy- /D WIN32 /D _DEBUG /D _CONSOLE /D _UNICODE /D UNICODE /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo”Debug\\” /Fd”Debug\vc100.pdb” /Gd /TP /analyze- /errorReport:prompt C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\MOVIES.CPP

Assignment 4 Solution/Assignment 4 Solution/Debug/CL.read.1.tlog
^C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\MOVIES.CPP
C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\MOVIE.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\STRING
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\ISTREAM
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\OSTREAM
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\IOS
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XLOCNUM
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CLIMITS
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\YVALS.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CRTDEFS.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\SAL.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CODEANALYSIS\SOURCEANNOTATIONS.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\VADEFS.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\USE_ANSI.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\LIMITS.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CMATH
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\MATH.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CSTDIO
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\STDIO.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\SWPRINTF.INL
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CSTDLIB
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\STDLIB.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\STREAMBUF
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XIOSBASE
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XLOCALE
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CSTRING
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\STRING.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\STDEXCEPT
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\EXCEPTION
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XSTDDEF
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CSTDDEF
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\STDDEF.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\EH.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\MALLOC.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XSTRING
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XMEMORY
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\NEW
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XUTILITY
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\UTILITY
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\IOSFWD
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CWCHAR
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\WCHAR.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\WTIME.INL
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CRTDBG.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\TYPE_TRAITS
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\LIMITS
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\YMATH.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CFLOAT
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\FLOAT.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CRTWRN.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XTR1COMMON
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XFWRAP
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XFWRAP1
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XXTYPE_TRAITS
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\TYPEINFO
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XLOCINFO
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XLOCINFO.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CTYPE.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\LOCALE.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XDEBUG
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\SYSTEM_ERROR
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CERRNO
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\ERRNO.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\SHARE.H
C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\MOVIES.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\FSTREAM
^C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\MOVIEINFOAPP.CPP
C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\MOVIE.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\STRING
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\ISTREAM
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\OSTREAM
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\IOS
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XLOCNUM
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CLIMITS
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\YVALS.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CRTDEFS.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\SAL.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CODEANALYSIS\SOURCEANNOTATIONS.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\VADEFS.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\USE_ANSI.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\LIMITS.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CMATH
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\MATH.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CSTDIO
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\STDIO.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\SWPRINTF.INL
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CSTDLIB
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\STDLIB.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\STREAMBUF
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XIOSBASE
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XLOCALE
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CSTRING
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\STRING.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\STDEXCEPT
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\EXCEPTION
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XSTDDEF
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CSTDDEF
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\STDDEF.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\EH.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\MALLOC.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XSTRING
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XMEMORY
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\NEW
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XUTILITY
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\UTILITY
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\IOSFWD
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CWCHAR
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\WCHAR.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\WTIME.INL
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CRTDBG.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\TYPE_TRAITS
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\LIMITS
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\YMATH.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CFLOAT
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\FLOAT.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CRTWRN.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XTR1COMMON
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XFWRAP
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XFWRAP1
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XXTYPE_TRAITS
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\TYPEINFO
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XLOCINFO
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XLOCINFO.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CTYPE.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\LOCALE.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XDEBUG
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\SYSTEM_ERROR
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CERRNO
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\ERRNO.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\SHARE.H
C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\MOVIES.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\IOSTREAM
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\IOMANIP
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XLOCMON
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XLOCTIME
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CTIME
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\TIME.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\TIME.INL
^C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\MOVIE.CPP
C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\MOVIE.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\STRING
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\ISTREAM
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\OSTREAM
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\IOS
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XLOCNUM
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CLIMITS
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\YVALS.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CRTDEFS.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\SAL.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CODEANALYSIS\SOURCEANNOTATIONS.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\VADEFS.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\USE_ANSI.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\LIMITS.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CMATH
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\MATH.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CSTDIO
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\STDIO.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\SWPRINTF.INL
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CSTDLIB
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\STDLIB.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\STREAMBUF
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XIOSBASE
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XLOCALE
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CSTRING
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\STRING.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\STDEXCEPT
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\EXCEPTION
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XSTDDEF
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CSTDDEF
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\STDDEF.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\EH.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\MALLOC.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XSTRING
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XMEMORY
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\NEW
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XUTILITY
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\UTILITY
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\IOSFWD
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CWCHAR
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\WCHAR.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\WTIME.INL
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CRTDBG.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\TYPE_TRAITS
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\LIMITS
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\YMATH.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CFLOAT
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\FLOAT.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CRTWRN.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XTR1COMMON
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XFWRAP
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XFWRAP1
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XXTYPE_TRAITS
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\TYPEINFO
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XLOCINFO
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XLOCINFO.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CTYPE.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\LOCALE.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\XDEBUG
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\SYSTEM_ERROR
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\CERRNO
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\ERRNO.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\SHARE.H
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\INCLUDE\SSTREAM

Assignment 4 Solution/Assignment 4 Solution/Debug/CL.write.1.tlog
^C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\MOVIE.CPP|C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\MOVIEINFOAPP.CPP|C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\MOVIES.CPP
C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\MOVIE.OBJ
C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\MOVIEINFOAPP.OBJ
C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\MOVIES.OBJ
^C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\MOVIE.CPP
C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\VC100.PDB
^C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\MOVIEINFOAPP.CPP
C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\VC100.PDB
^C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\MOVIES.CPP
C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\VC100.PDB

Assignment 4 Solution/Assignment 4 Solution/Debug/link.3100.read.1.tlog
ÿþ

Assignment 4 Solution/Assignment 4 Solution/Debug/link.3100.write.1.tlog
ÿþ

Assignment 4 Solution/Assignment 4 Solution/Debug/link.3100-cvtres.read.1.tlog
ÿþ

Assignment 4 Solution/Assignment 4 Solution/Debug/link.3100-cvtres.write.1.tlog
ÿþ

Assignment 4 Solution/Assignment 4 Solution/Debug/link.command.1.tlog
^C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\ASSIGNMENT 4 SOLUTION.EXE.EMBED.MANIFEST.RES|C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\MOVIE.OBJ|C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\MOVIEINFOAPP.OBJ|C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\MOVIES.OBJ
/ERRORREPORT:PROMPT /OUT:”C:\Temp\Assignment 4 Solution\Debug\Assignment 4 Solution.exe” /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /ManifestFile:”Debug\Assignment 4 Solution.exe.intermediate.manifest” /MANIFESTUAC:”level=’asInvoker’ uiAccess=’false'” /DEBUG /PDB:”C:\Temp\Assignment 4 Solution\Debug\Assignment 4 Solution.pdb” /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:”C:\Temp\Assignment 4 Solution\Debug\Assignment 4 Solution.lib” /MACHINE:X86 “Debug\Assignment 4 Solution.exe.embed.manifest.res”
Debug\Movie.obj
Debug\MovieInfoApp.obj
Debug\Movies.obj

Assignment 4 Solution/Assignment 4 Solution/Debug/link.read.1.tlog
^C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\ASSIGNMENT 4 SOLUTION.EXE.EMBED.MANIFEST.RES|C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\MOVIE.OBJ|C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\MOVIEINFOAPP.OBJ|C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\MOVIES.OBJ
C:\PROGRAM FILES (X86)\MICROSOFT SDKS\WINDOWS\V7.0A\LIB\KERNEL32.LIB
C:\PROGRAM FILES (X86)\MICROSOFT SDKS\WINDOWS\V7.0A\LIB\USER32.LIB
C:\PROGRAM FILES (X86)\MICROSOFT SDKS\WINDOWS\V7.0A\LIB\GDI32.LIB
C:\PROGRAM FILES (X86)\MICROSOFT SDKS\WINDOWS\V7.0A\LIB\WINSPOOL.LIB
C:\PROGRAM FILES (X86)\MICROSOFT SDKS\WINDOWS\V7.0A\LIB\COMDLG32.LIB
C:\PROGRAM FILES (X86)\MICROSOFT SDKS\WINDOWS\V7.0A\LIB\ADVAPI32.LIB
C:\PROGRAM FILES (X86)\MICROSOFT SDKS\WINDOWS\V7.0A\LIB\SHELL32.LIB
C:\PROGRAM FILES (X86)\MICROSOFT SDKS\WINDOWS\V7.0A\LIB\OLE32.LIB
C:\PROGRAM FILES (X86)\MICROSOFT SDKS\WINDOWS\V7.0A\LIB\OLEAUT32.LIB
C:\PROGRAM FILES (X86)\MICROSOFT SDKS\WINDOWS\V7.0A\LIB\UUID.LIB
C:\PROGRAM FILES (X86)\MICROSOFT SDKS\WINDOWS\V7.0A\LIB\ODBC32.LIB
C:\PROGRAM FILES (X86)\MICROSOFT SDKS\WINDOWS\V7.0A\LIB\ODBCCP32.LIB
C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\ASSIGNMENT 4 SOLUTION.EXE.EMBED.MANIFEST.RES
C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\MOVIE.OBJ
C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\MOVIEINFOAPP.OBJ
C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\MOVIES.OBJ
C:\WINDOWS\GLOBALIZATION\SORTING\SORTDEFAULT.NLS
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\LIB\MSVCPRTD.LIB
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\LIB\MSVCRTD.LIB
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\LIB\OLDNAMES.LIB
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\BIN\CVTRES.EXE
C:\WINDOWS\SYSTEM32\TZRES.DLL
C:\TEMP\ASSIGNMENT 4 SOLUTION\DEBUG\ASSIGNMENT 4 SOLUTION.EXE
C:\WINDOWS\SYSTEM32\RSAENH.DLL
C:\TEMP\ASSIGNMENT 4 SOLUTION\DEBUG\ASSIGNMENT 4 SOLUTION.PDB
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\BIN\LINK.EXE

Assignment 4 Solution/Assignment 4 Solution/Debug/link.write.1.tlog
^C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\ASSIGNMENT 4 SOLUTION.EXE.EMBED.MANIFEST.RES|C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\MOVIE.OBJ|C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\MOVIEINFOAPP.OBJ|C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\MOVIES.OBJ
C:\TEMP\ASSIGNMENT 4 SOLUTION\DEBUG\ASSIGNMENT 4 SOLUTION.ILK
C:\TEMP\ASSIGNMENT 4 SOLUTION\DEBUG\ASSIGNMENT 4 SOLUTION.EXE
C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\ASSIGNMENT 4 SOLUTION.EXE.INTERMEDIATE.MANIFEST
C:\TEMP\ASSIGNMENT 4 SOLUTION\DEBUG\ASSIGNMENT 4 SOLUTION.PDB

Assignment 4 Solution/Assignment 4 Solution/Debug/link-cvtres.read.1.tlog
ÿþ

Assignment 4 Solution/Assignment 4 Solution/Debug/link-cvtres.write.1.tlog
ÿþ

Assignment 4 Solution/Assignment 4 Solution/Debug/Movie.obj

Assignment 4 Solution/Assignment 4 Solution/Debug/MovieInfoApp.obj

Assignment 4 Solution/Assignment 4 Solution/Debug/Movies.obj

Assignment 4 Solution/Assignment 4 Solution/Debug/mt.command.1.tlog
^C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\ASSIGNMENT 4 SOLUTION.EXE.INTERMEDIATE.MANIFEST
/nologo /verbose /out:”Debug\Assignment 4 Solution.exe.embed.manifest” /manifest “Debug\Assignment 4 Solution.exe.intermediate.manifest”

Assignment 4 Solution/Assignment 4 Solution/Debug/mt.read.1.tlog
^C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\ASSIGNMENT 4 SOLUTION.EXE.INTERMEDIATE.MANIFEST

Assignment 4 Solution/Assignment 4 Solution/Debug/mt.write.1.tlog
^C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\ASSIGNMENT 4 SOLUTION.EXE.INTERMEDIATE.MANIFEST
C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\ASSIGNMENT 4 SOLUTION.EXE.EMBED.MANIFEST

Assignment 4 Solution/Assignment 4 Solution/Debug/rc.command.1.tlog
^C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\ASSIGNMENT 4 SOLUTION_MANIFEST.RC
/nologo /fo”Debug\Assignment 4 Solution.exe.embed.manifest.res” “Debug\Assignment 4 Solution_manifest.rc” /nologo /fo”Debug\Assignment 4 Solution.exe.embed.manifest.res” C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\ASSIGNMENT 4 SOLUTION_MANIFEST.RC

Assignment 4 Solution/Assignment 4 Solution/Debug/rc.read.1.tlog
^C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\ASSIGNMENT 4 SOLUTION_MANIFEST.RC
C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\ASSIGNMENT 4 SOLUTION.EXE.EMBED.MANIFEST

Assignment 4 Solution/Assignment 4 Solution/Debug/rc.write.1.tlog
^C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\ASSIGNMENT 4 SOLUTION_MANIFEST.RC
C:\TEMP\ASSIGNMENT 4 SOLUTION\ASSIGNMENT 4 SOLUTION\DEBUG\ASSIGNMENT 4 SOLUTION.EXE.EMBED.MANIFEST.RES

Assignment 4 Solution/Assignment 4 Solution/Debug/vc100.idb

Assignment 4 Solution/Assignment 4 Solution/Debug/vc100.pdb

Assignment 4 Solution/Assignment 4 Solution/Movie.cpp
Assignment 4 Solution/Assignment 4 Solution/Movie.cpp
// Movie.cpp

#include
 
“Movie.h”
 
// include Movie class definition

#include
 
< string >

#include
 
< sstream >

using
 
namespace
 std
;

Movie
::
Movie
()
 
{

    title 
=
 studio 
=
 
“”
;

    boxOffice
[
WORLD
]
 
=
 boxOffice
[
US
]
 
=
 boxOffice
[
NON_US
]
 
=
 

        rank
[
WORLD
]
 
=
 rank
[
US
]
 
=
 rank
[
NON_US
]
 
=
 releaseYear 
=
 
0
;

}

Movie
::
Movie
(
string temp
)
 
{

    istringstream iS
(
temp
);

    getline
(
iS
,
 title
,
 
‘\t’
);

    getline
(
iS
,
 studio
,
 
‘\t’
);

    iS 
>>
 releaseYear 
>>
 boxOffice
[
WORLD
]
 
>>
 boxOffice
[
US
]
 
>>
 boxOffice
[
NON_US
]
 
>>

        rank
[
WORLD
]
 
>>
 rank
[
US
]
 
>>
 rank
[
NON_US
];

}

string 
Movie
::
getTitle
()
 
{
return
 title
;}

string 
Movie
::
getStudio
()
 
{
return
 studio
;}

long
 
long
 
Movie
::
getWorldBoxOffice
()
 
{
return
 boxOffice
[
WORLD
];}

long
 
long
 
Movie
::
getUSBoxOffice
()
 
{
return
 boxOffice
[
US
];}

long
 
long
 
Movie
::
getNonUSBoxOffice
()
 
{
return
 boxOffice
[
NON_US
];}

int
 
Movie
::
getWorldRank
()
 
{
return
 rank
[
WORLD
];}

int
 
Movie
::
getUSRank
()
 
{
return
 rank
[
US
];}

int
 
Movie
::
getNonUSRank
()
 
{
return
 rank
[
NON_US
];}

int
 
Movie
::
getReleaseYear
()
 
{
return
 releaseYear
;}

string 
Movie
::
toString
()
 
{

    ostringstream oS
;

    oS 
<<   "\n\n====================== Movie Information\n"      <<   "\n             Movie Title:\t"   <<  title  <<   "  ("   <<  releaseYear  <<   ")"      <<   "\n    US Rank & Box Office:\t"   <<  rank [ US ]   <<   "\t$"   <<  boxOffice [ US ]      <<   "\nNon-US Rank & Box Office:\t"   <<  rank [ NON_US ]   <<   "\t$"   <<  boxOffice [ NON_US ]      <<   "\n World Rank & Box Office:\t"   <<  rank [ WORLD ]   <<   "\t$"   <<  boxOffice [ WORLD ]      <<   "\n" ;      return  oS . str (); } Assignment 4 Solution/Assignment 4 Solution/Movie.h // Movie.h #ifndef MOVIE_H #define MOVIE_H #include
using namespace std;
class Movie {
// data is private by default
string title, studio;
long long boxOffice[3]; // World, US, non-US
short rank[3], releaseYear; // World, US, non-US
enum unit {WORLD, US, NON_US};
public:
Movie();
Movie(string);
string getTitle();
string getStudio();
long long getWorldBoxOffice();
long long getUSBoxOffice();
long long getNonUSBoxOffice();
int getWorldRank();
int getUSRank();
int getNonUSRank();
int getReleaseYear();
string toString();
};
#endif

Assignment 4 Solution/Assignment 4 Solution/MovieInfoApp.cpp
Assignment 4 Solution/Assignment 4 Solution/MovieInfoApp.cpp
// MovieInfoApp.cpp

#include
 
“Movie.h”
 
// include Movie class definition

#include
 
“Movies.h”
 
// include Movies class definition

#include
 
< iostream >

#include
 
< iomanip >

#include
 
< string >

using
 
namespace
 std
;

void
 main
()
 
{

    
Movies
 movies
(
“Box Office Mojo.txt”
);

    
if
(
movies
.
getMovieCount
()
 
>
 
0
)
 
{

        string movieCode
;

        cout 
<<   "Please enter the movie search string "              <<   "or #number (press Enter to exit): " ;         getline ( cin ,  movieCode );          if   ( movieCode . length ()   >
 
0
)
 
{

            
do
 
{

                
Movie
 m
;

                
if
(
movieCode
[
0
]
==
‘#’
)

                    m 
=
 movies
.
getMovie
(
stoi
(
movieCode
.
substr
(
1
)));
 
// C++ 11

//                      atoi(movieCode.substr(1).c_str()));

                
else

                    m 
=
 movies
.
getMovie
(
movieCode
);

                
if
(
m
.
getTitle
().
length
()
 
>
 
0
)
 
{

                    cout 
<<  m . toString ()   <<   "\n" ;                      if ( m . getWorldBoxOffice ()   >
 
0
)

                        cout 
<<  setprecision ( 1 )   <<  fixed                              <<   "\n\tNon-US to World Ratio:\t"                              <<   ( m . getNonUSBoxOffice ()   *   100.0 )   /                                   m . getWorldBoxOffice ()   <<   "%\n"   <<  endl ;                      else                         cout  <<   "No ratio due to zero World Box Office\n" ;                  }   else                     cout  <<   "\n Movie not found!\n\n"   <<  endl ;                 cout  <<   "Please enter the movie search string "                      <<   "or #number (press Enter to exit): " ;                 getline ( cin ,  movieCode );              }   while   ( movieCode . length ()   >
 
0
);

        
}

    
}

}

Assignment 4 Solution/Assignment 4 Solution/Movies.cpp
Assignment 4 Solution/Assignment 4 Solution/Movies.cpp
// Movies.cpp

#include
 
“Movie.h”
 
// include Movie class definition

#include
 
“Movies.h”
 
// include Movies class definition

#include
 
< fstream >

using
 
namespace
 std
;

Movies
::
Movies
(
string fn
){
loadMovies
(
fn
);}

int
 
Movies
::
getMovieCount
()
 
{
return
 movieCnt
;}

const
 
Movie
 
Movies
::
getMovie
(
string mc
)
 
{

    
if
(
mc
.
length
()
==
0
)

        
return
 movies
[
movieCnt
];
 
// not found

    
else
 
{

        mc 
=
 myToLower
(
mc
);

        
int
 ndx
=
0
;

        
for
(;
ndx
< movieCnt  &&              ( myToLower ( movies [ ndx ]. getTitle ()). find ( mc ) ==             string :: npos ); ndx ++ );          return  movies [ ndx ];      } } const   Movie   Movies :: getMovie ( int  mc )   {      if ( mc  <=   0   ||  mc  >
 movieCnt
)

        
return
 movies
[
movieCnt
];
 
// not found, default movie, Movie(“”)

    
return
 movies
[
mc

1
];

}

void
 
Movies
::
loadMovies
(
string fn
)
 
{

    ifstream iS
(
fn
);

    string s
;

    getline
(
iS
,
 s
);
 
// skip heading

    getline
(
iS
,
 s
);

    movieCnt
=
0
;

    
while
(
!
iS
.
eof
())
 
{

        movies
[
movieCnt
++
]
 
=
 
Movie
(
s
);

        getline
(
iS
,
 s
);

    
}

    iS
.
close
();

}

string 
Movies
::
myToLower
(
string s
)
 
{

    
int
 n 
=
 s
.
length
();

    string t
(
s
);

    
for
(
int
 i
=
0
;
i
< n ; i ++ )         t [ i ]   =  tolower ( s [ i ]);      return  t ; } Assignment 4 Solution/Assignment 4 Solution/Movies.h // Movies.h #ifndef MOVIES_H #define MOVIES_H #include "Movie.h" // include Movie class definition #include
using namespace std;
class Movies {
// data is private by default
static const int MAX_MOVIES = 1000;
Movie movies[MAX_MOVIES];
short movieCnt;
public:
Movies(string);
int getMovieCount();
const Movie getMovie(string);
const Movie getMovie(int);
private:
void loadMovies(string);
string myToLower(string);
};
#endif

Assignment 4 Solution/Debug/Assignment 4 Solution.exe

Assignment 4 Solution/Debug/Assignment 4 Solution.ilk

Assignment 4 Solution/Debug/Assignment 4 Solution.pdb

Assignment 4 Solution/ipch/assignment 4 solution-3ccd737b/assignment 4 solution-22de5cf6.ipch

1

CSC 262
Programming in C++ II
Sykes
Day 18

22.1  Introduction to the Standard Template Library (STL)
We’ve repeatedly emphasized the importance of software reuse.
Recognizing that many data structures and algorithms are commonly used, the C++ standard committee added the Standard Template Library (STL) to the C++ Standard Library.
The STL defines powerful, template-based, reusable components that implement many common data structures and algorithms used to process those data structures.
2

22.1  Introduction to the Standard Template Library (STL) (Cont.)
As you’ll see, the STL was conceived and designed for performance and flexibility.
This chapter introduces the STL and discusses its three key components—containers (popular templatized data structures), iterators and algorithms.
The STL containers are data structures capable of storing objects of almost any data type (there are some restrictions).
We’ll see that there are three styles of container classes—first-class containers, adapters and near containers.
3

4

22.1  Introduction to the Standard Template Library (STL) (Cont.)
STL iterators, which have properties similar to those of pointers, are used by programs to manipulate the STL-container elements.
In fact, standard arrays can be manipulated by STL algorithms, using standard pointers as iterators.
We’ll see that manipulating containers with iterators is convenient and provides tremendous expressive power when combined with STL algorithms—in some cases, reducing many lines of code to a single statement.
There are five categories of iterators, each of which we discuss in Section 22.1.2 and use throughout this chapter.
5

22.1  Introduction to the Standard Template Library (STL) (Cont.)
STL algorithms are functions that perform such common data manipulations as searching, sorting and comparing elements (or entire containers).
The STL provides approximately 70 algorithms.
Most of them use iterators to access container elements.
Each algorithm has minimum requirements for the types of iterators that can be used with it.
We’ll see that each first-class container supports specific iterator types, some more powerful than others.
A container’s supported iterator type determines whether the container can be used with a specific algorithm.
6

22.1  Introduction to the Standard Template Library (STL) (Cont.)
Iterators encapsulate the mechanism used to access container elements.
This encapsulation enables many of the STL algorithms to be applied to several containers without regard for the underlying container implementation.
As long as a container’s iterators support the minimum requirements of the algorithm, then the algorithm can process that container’s elements.
This also enables you to create new algorithms that can process the elements of multiple container types.
7

8

22.1  Introduction to the Standard Template Library (STL) (Cont.)
In Chapter 20, we studied data structures.
We built linked lists, queues, stacks and trees.
We carefully wove link objects together with pointers.
Pointer-based code is complex, and the slightest omission or oversight can lead to serious memory-access violations and memory-leak errors with no compiler complaints.
Implementing additional data structures, such as deques, priority queues, sets and maps, requires substantial extra work.
An advantage of the STL is that you can reuse the STL containers, iterators and algorithms to implement common data representations and manipulations.
9

10

11

Iterators
Recall: generalization of a pointer
Typically even implemented with pointer!
“Abstraction” of iterators
Designed to hide details of implementation
Provide uniform interface across different
container classes
Each container class has “own” iterator type
Similar to how each data type has own
pointer type
19-12

12

Manipulating Iterators
Recall using overloaded operators:
++, –, ==, !=
*
So if p is iterator variable, *p gives access to data
pointed to by p
Vector template class
Has all above overloads
Also has members begin() and end()
c.begin(); //Returns iterator for 1st item in c
c.end(); //Returns “test” value for end
19-13

13

Cycling with Iterators
Recall cycling ability:
for (p=c.begin();p!=c.end();p++)
process *p //*p is current data item
Big picture so far…
Keep in mind:
Each container type in STL has own iterator types
Even though they’re all used similarly
19-14

14

Display 19.1
Iterators Used with a Vector (1 of 2)
19-15
1 //Program to demonstrate STL iterators.
2 #include
3 #include
4 using std::cout;
5 using std::endl;
6 using std::vector;
7 int main( )
8 {
9 vector container;
10 for (int i = 1; i <= 4; i++) 11 container.push_back(i); 12 cout << "Here is what is in the container:\n"; 13 vector::iterator p;
14 for (p = container.begin( ); p != container.end( ); p++)
15 cout << *p << " "; 16 cout << endl; 17 cout << "Setting entries to 0:\n"; 18 for (p = container.begin( ); p != container.end( ); p++) 19 *p = 0; 15 Display 19.1 Iterators Used with a Vector (2 of 2) 19-16 20 cout << "Container now contains:\n"; 21 for (p = container.begin( ); p != container.end( ); p++) 22 cout << *p << " "; 23 cout << endl; 24 return 0; 25 } Sample Dialogue Here is what is in the container: 1 2 3 4 Setting entries to 0: Container now contains: 0 0 0 0 16 Vector Iterator Types Iterators for vectors of ints are of type: std::vector::iterator
Iterators for lists of ints are of type:
std::list::iterator
Vector is in std namespace, so need:
using std::vector::iterator;
19-17

17

Kinds of Iterators
Different containers  different iterators
Vector iterators
Most “general” form
All operations work with vector iterators
Vector container great for iterator examples
19-18

18

Random Access:
Display 19.2 Bidirectional and
Random-Access Iterator Use
19-19

19

Iterator Classifications
Forward iterators:
++ works on iterator
Bidirectional iterators:
Both ++ and – work on iterator (“–“)
Random-access iterators:
++, –, and random access all work
with iterator
These are “kinds” of iterators, not types!
19-20

20

Constant and Mutable Iterators
Dereferencing operator’s behavior dictates
Constant iterator:
* produces read-only version of element
Can use *p to assign to variable or output,
but cannot change element in container
E.g., *p = ; is illegal
Mutable iterator:
*p can be assigned value
Changes corresponding element in container
i.e.: *p returns an lvalue
19-21

21

Reverse Iterators
To cycle elements in reverse order
Requires container with bidirectional iterators
Might consider:
iterator p;
for (p=container.end();p!=container.begin(); p–)
cout << *p << " " ; But recall: end() is just "sentinel", begin() not! Might work on some systems, but not most 19-22 22 Reverse Iterators Correct To correctly cycle elements in reverse order: reverse_iterator p; for (rp=container.rbegin();rp!=container.rend(); rp++) cout << *rp << " " ; rbegin() Returns iterator at last element rend() Returns sentinel "end" marker 19-23 23 Compiler Problems Some compilers problematic with iterator declarations Consider our usage: using std::vector::iterator;

iterator p;
Alternatively:
std::vector::iterator p;
And others…
Try various forms if compiler problematic
19-24

24

22.1.2 Introduction to Iterators (Cont.)
STL first-class containers provide member functions begin and end.
Function begin returns an iterator pointing to the first element of the container.
Function end returns an iterator pointing to the first element past the end of the container (an element that doesn’t exist).
25

22.1.2 Introduction to Iterators (Cont.)
If iterator i points to a particular element, then ++i points to the “next” element and *i refers to the element pointed to by i.
The iterator resulting from end is typically used in an equality or inequality comparison to determine whether the “moving iterator” (i in this case) has reached the end of the container.
An object of type iterator refers to a container element that can be modified.
An object of type const_iterator refers to a container element that cannot be modified.
26

22.1.2 Introduction to Iterators (Cont.)
Figure 22.9 shows the predefined iterator typedefs that are found in the class definitions of the STL containers.
Not every typedef is defined for every container.
We use const versions of the iterators for traversing read-only containers.
We use reverse iterators to traverse containers in the reverse direction.
27

28

29

22.1.2 Introduction to Iterators (Cont.)
Figure 22.10 shows some operations that can be performed on each iterator type.
The operations for each iterator type include all operations preceding that type in the figure.
30

31

32

33

34

35

36

22.1.2 Introduction to Iterators (Cont.)
Figure 22.6 shows the categories of STL iterators.
Each category provides a specific set of functionality.
Figure 22.7 illustrates the hierarchy of iterator categories.
As you follow the hierarchy from top to bottom, each iterator category supports all the functionality of the categories above it in the figure.
Thus the “weakest” iterator types are at the top and the most powerful one is at the bottom.
Note that this is not an inheritance hierarchy.
37

38

39

40

Containers
Container classes in STL
Different kinds of data structures
Like lists, queues, stacks
Each is template class with parameter for particular data type to be stored
e.g., Lists of ints, doubles or myClass types
Each has own iterators
One might have bidirectional, another might just have forward iterators
But all operators and members have same meaning
19-41

41

22.1.1 Introduction to Containers
The STL container types are shown in Fig. 22.1.
The containers are divided into three major categories—sequence containers, associative containers and container adapters.
42

43

44

22.1.1 Introduction to Containers (Cont.)
The sequence containers represent linear data structures, such as vectors and linked lists.
Associative containers are nonlinear containers that typically can locate elements stored in the containers quickly.
Such containers can store sets of values or key/value pairs.
The sequence containers and associative containers are collectively referred to as the first-class containers.
As we saw in Chapter 20, stacks and queues actually are constrained versions of sequential containers.
For this reason, STL implements stacks and queues as container adapters that enable a program to view a sequential container in a constrained manner.
45

22.1.1 Introduction to Containers (Cont.)
There are other container types that are considered “near containers”—C-like pointer-based arrays (discussed in Chapter 7), bitsets for maintaining sets of flag values and val-arrays for performing high-speed mathematical vector operations (this last class is optimized for computation performance and is not as flexible as the first-class containers).
These types are considered “near containers” because they exhibit capabilities similar to those of the first-class containers, but do not support all the first-class-container capabilities.
Type string (discussed in Chapter 18) supports the same functionality as a sequence container, but stores only character data.
46

22.1.2 Introduction to Iterators (Cont.)
The iterator category that each container supports determines whether that container can be used with specific algorithms in the STL.
Containers that support random-access iterators can be used with all algorithms in the STL.
As we’ll see, pointers into arrays can be used in place of iterators in most STL algorithms, including those that require random-access iterators.
Figure 22.8 shows the iterator category of each of the STL containers.
The first-class containers (vectors, deques, lists, sets, multisets, maps and multimaps), strings and arrays are all traversable with iterators.
47

48

22.1.1 Introduction to Containers (Cont.)
Most STL containers provide similar functionality.
Many generic operations, such as member function size, apply to all containers, and other operations apply to subsets of similar containers.
This encourages extensibility of the STL with new classes.
Figure 22.2 describes the functions common to all Standard Library containers.
[Note: Overloaded operators operator<, operator<=, operator>, operator>=, operator== and operator!= are not provided for priority_queues.]
49

50

51

52

22.1.1 Introduction to Containers (Cont.)
The header files for each of the Standard Library containers are shown in Fig. 22.3.
The contents of these header files are all in namespace std.
53

54

22.1.1 Introduction to Containers (Cont.)
Figure 22.4 shows the common typedefs (to create synonyms or aliases for lengthy type names) found in first-class containers.
These typedefs are used in generic declarations of variables, parameters to functions and return values from functions.
For example, value_type in each container is always a typedef that represents the type of value stored in the container.
55

56

57

58

59

22.1.1 Introduction to Containers (Cont.)
When preparing to use an STL container, it’s important to ensure that the type of element being stored in the container supports a minimum set of functionality.
When an element is inserted into a container, a copy of that element is made.
For this reason, the element type should provide its own copy constructor and assignment operator.
[Note: This is required only if default memberwise copy and default memberwise assignment do not perform proper copy and assignment operations for the element type.]
Also, the associative containers and many algorithms require elements to be compared.
For this reason, the element type should provide an equality operator (==) and a less-than operator (<). 60 61 Sequential Containers Arranges list data 1st element, next element, … to last element Linked list is sequential container Earlier linked lists were "singly linked lists" One link per node STL has no "singly linked list" Only "doubly linked list": template class list 19-62 62 Display 19.4 Two Kinds of Lists 19-63 63 Display 19.5 Using the list Template Class(1 of 2) 19-64 1 //Program to demonstrate the STL template class list. 2 #include
3 #include 4 using std::cout;
5 using std::endl;
6 using std::list;
7 int main( )
8 {
9 list listObject;
10 for (int i = 1; i <= 3; i++) 11 listObject.push_back(i); 12 cout << "List contains:\n"; 13 list::iterator iter;
14 for (iter = listObject.begin( ); iter != listObject.end( );
iter++)
15 cout << *iter << " "; 16 cout << endl; 64 Display 19.5 Using the list Template Class(2 of 2) 19-65 17 cout << "Setting all entries to 0:\n"; 18 for (iter = listObject.begin( ); iter != listObject.end( ); iter++) 19 *iter = 0; 20 cout << "List now contains:\n"; 21 for (iter = listObject.begin( ); iter != listObject.end( ); iter++) 22 cout << *iter << " "; 23 cout << endl; 24 return 0; 25 } SAMPLE DIALOGUE List contains: 1 2 3 Setting all entries to 0: List now contains: 0 0 0 65 Associative Containers Associative container: simple database Store data Each data item has key Example: data: employee’s record as struct key: employee’s SSN Items retrieved based on key 19-66 66 22.3  Associative Containers The STL’s associative containers provide direct access to store and retrieve elements via keys (often called search keys). The four associative containers are multiset, set, multimap and map. Each associative container maintains its keys in sorted order. Iterating through an associative container traverses it in the sort order for that container. Classes multiset and set provide operations for manipulating sets of values where the values are the keys—there is not a separate value associated with each key. The primary difference between a multiset and a set is that a multiset allows duplicate keys and a set does not. 67 22.3  Associative Containers (Cont.) Classes multimap and map provide operations for manipulating values associated with keys (these values are sometimes referred to as mapped values). The primary difference between a multimap and a map is that a multimap allows duplicate keys with associated values to be stored and a map allows only unique keys with associated values. In addition to the common member functions of all containers presented in Fig. 22.2, all associative containers also support several other member functions, including find, lower_bound, upper_bound and count. Examples of each of the associative containers and the common associative container member functions are presented in the next several subsections. 68 set Template Class Simplest container possible Stores elements without repetition 1st insertion places element in set Each element is own key Capabilities: Add elements Delete elements Ask if element is in set 19-69 69 22.3.2 set Associative Container The set associative container is used for fast storage and retrieval of unique keys. The implementation of a set is identical to that of a multiset, except that a set must have unique keys. Therefore, if an attempt is made to insert a duplicate key into a set, the duplicate is ignored; because this is the intended mathematical behavior of a set, we do not identify it as a common programming error. A set supports bidirectional iterators (but not random-access iterators). Figure 22.20 demonstrates a set of doubles. Header file must be included to use class set.
70

Program Using the set Template Class (1 of 2)
19-71
1 //Program to demonstrate use of the set template class.
2 #include
3 #include
4 using std::cout;
5 using std::endl;
6 using std::set;
7 int main( )
8 {
9 set s;
10 s.insert(’A’);
11 s.insert(’D’);
12 s.insert(’D’);
13 s.insert(’C’);
14 s.insert(’C’);
15 s.insert(’B’);
16 cout << "The set contains:\n"; 17 set::const_iterator p;
18 for (p = s.begin( ); p != s.end( ); p++)
19 cout << *p << " "; 20 cout << endl; 71 Program Using the set Template Class (2 of 2) 19-72 21 cout << "Set contains 'C': "; 22 if (s.find('C')==s.end( )) 23 cout << " no " << endl; 24 else 26 cout << " yes " << endl; 27 cout << "Removing C.\n"; 28 s.erase(’C’); 29 for (p = s.begin( ); p != s.end( ); p++) 30 cout << *p << " "; 31 cout << endl; 32 cout << "Set contains 'C': "; 33 if (s.find('C')==s.end( )) 34 cout << " no " << endl; 35 else 36 cout << " yes " << endl; 37 return 0; 38 } SAMPLE DIALOGUE The set contains: A B C D Set contains 'C': yes Removing C. A B D Set contains 'C': no 72 Map Template Class A function given as set of ordered pairs For each value first, at most one value second in map Example map declaration: map numberMap;
Can use [ ] notation to access the map
For both storage and retrieval
Stores in sorted order, like set
Second value can have no ordering impact
19-73

73

22.3.4 map Associative Container
The map associative container performs fast storage and retrieval of unique keys and associated values.
Duplicate keys are not allowed—a single value can be associated with each key.
This is called a one-to-one mapping.
For example, a company that uses unique employee numbers, such as 100, 200 and 300, might have a map that associates employee numbers with their telephone extensions—4321, 4115 and 5217, respectively.
With a map you specify the key and get back the associated data quickly.
A map is also known as an associative array.
Providing the key in a map’s subscript operator [] locates the value associated with that key in the map.
74

Program Using the map Template Class (1 of 3)
19-75
1 //Program to demonstrate use of the map template class.
2 #include
3 #include

4 #include
5 using std::cout;
6 using std::endl;
7 using std::map;
8 using std::string;
9 int main( )
10 {
11 map planets;
12 planets[“Mercury”] = “Hot planet”;
13 planets[“Venus”] = “Atmosphere of sulfuric acid”;
14 planets[“Earth”] = “Home”;
15 planets[“Mars”] = “The Red Planet”;
16 planets[“Jupiter”] = “Largest planet in our solar system”;
17 planets[“Saturn”] = “Has rings”;
18 planets[“Uranus”] = “Tilts on its side”;
19 planets[“Neptune”] = “1500 mile per hour winds”;
20 planets[“Pluto”] = “Dwarf planet”;

75

Program Using the map Template Class (2 of 3)
19-76
21 cout << "Entry for Mercury - " << planets["Mercury"] 22 << endl << endl; 23 if (planets.find("Mercury") != planets.end()) 24 cout << "Mercury is in the map." << endl; 25 if (planets.find("Ceres") == planets.end()) 26 cout << "Ceres is not in the map." << endl << endl; 27 cout << "Iterating through all planets: " << endl; 28 map::const_iterator iter;
29 for (iter = planets.begin(); iter != planets.end(); iter++)
30 {
31 cout << iter->first << " - " << iter->second << endl; 32 } The iterator will output the map in order sorted by the key. In this case the output will be listed alphabetically by planet. 33 return 0; 34 } 76 Program Using the map Template Class (3 of 3) 19-77 SAMPLE DIALOGUE Entry for Mercury - Hot planet Mercury is in the map. Ceres is not in the map. Iterating through all planets: Earth - Home Jupiter - Largest planet in our solar system Mars - The Red Planet Mercury - Hot planet Neptune - 1500 mile per hour winds Pluto - Dwarf planet Saturn - Has rings Uranus - Tilts on its side Venus - Atmosphere of sulfuric acid 77 Container Adapters stack and queue Container adapters are template classes Implemented "on top of" other classes Example: stack template class by default implemented on top of deque template class Buried in stack’s implementation is deque where all data resides Others: queue, priority_queue 19-78 78 Specifying Container Adapters Adapter template classes have "default" containers underneath But can specify different underlying container Examples: stack template class  any sequence container priority_queue  default is vector, could be others Implementing Example: stack>
Makes vector underlying container for stack
19-79

79

22.4  Container Adapters
The STL provides three container adapters—stack, queue and priority_queue.
Adapters are not first-class containers, because they do not provide the actual data-structure implementation in which elements can be stored and because adapters do not support iterators.
The benefit of an adapter class is that you can choose an appropriate underlying data structure.
All three adapter classes provide member functions push and pop that properly insert an element into each adapter data structure and properly remove an element from each adapter data structure.
80

22.4.1 stack Adapter
Class stack enables insertions into and deletions from the underlying data structure at one end (commonly referred to as a last-in, first-out data structure).
A stack can be implemented with any of the sequence containers: vector, list and deque.
This example creates three integer stacks, using each of the sequence containers of the Standard Library as the underlying data structure to represent the stack.
By default, a stack is implemented with a deque.
81

22.4.1 stack Adapter (Cont.)
The stack operations are push to insert an element at the top of the stack (implemented by calling function push_back of the underlying container), pop to remove the top element of the stack (implemented by calling function pop_back of the underlying container), top to get a reference to the top element of the stack (implemented by calling function back of the underlying container), empty to determine whether the stack is empty (implemented by calling function empty of the underlying container) and size to get the number of elements in the stack (implemented by calling function size of the underlying container).
82

83

84

22.4.2 queue Adapter
Class queue enables insertions at the back of the underlying data structure and deletions from the front (commonly referred to as a first-in, first-out data structure).
A queue can be implemented with STL data structure list or deque.
By default, a queue is implemented with a deque.
85

22.4.2 queue Adapter (Cont.)
The common queue operations are push to insert an element at the back of the queue (implemented by calling function push_back of the underlying container), pop to remove the element at the front of the queue (implemented by calling function pop_front of the underlying container), front to get a reference to the first element in the queue (implemented by calling function front of the underlying container), back to get a reference to the last element in the queue (implemented by calling function back of the underlying container), empty to determine whether the queue is empty (implemented by calling function empty of the underlying container) and size to get the number of elements in the queue (implemented by calling function size of the underlying container).
86

87

88

22.4.3 priority_queue Adapter (Cont.)
Class priority_queue provides functionality that enables insertions in sorted order into the underlying data structure and deletions from the front of the underlying data structure.
A priority_queue can be implemented with STL sequence containers vector or deque.
By default, a priority_queue is implemented with a vector as the underlying container.
When elements are added to a priority_queue, they’re inserted in priority order, such that the highest-priority element (i.e., the largest value) will be the first element removed from the priority_queue.
89

22.4.3 priority_queue Adapter (Cont.)
This is usually accomplished by arranging the elements in a binary tree structure called a heap that always maintains the largest value (i.e., highest-priority element) at the front of the data structure.
We discuss the STL’s heap algorithms in Section 22.5.12.
The comparison of elements is performed with comparator function object less< T > by default, but you can supply a different comparator.
There are several common priority_queue operations.
push inserts an element at the appropriate location based on priority order of the priority_queue (implemented by calling function push_back of the underlying container, then reordering the elements using heapsort).
90

22.4.3 priority_queue Adapter (Cont.)
pop removes the highest-priority element of the priority_queue (implemented by calling function pop_back of the underlying container after removing the top element of the heap).
top gets a reference to the top element of the priority_queue (implemented by calling function front of the underlying container).
empty determines whether the priority_queue is empty (implemented by calling function empty of the underlying container).
size gets the number of elements in the priority_queue (implemented by calling function size of the underlying container).
91

92

93

22.5  Algorithms
Until the STL, class libraries of containers and algorithms were essentially incompatible among vendors.
Early container libraries generally used inheritance and polymorphism, with the associated overhead of virtual function calls.
Early libraries built the algorithms into the container classes as class behaviors.
The STL separates the algorithms from the containers.
This makes it much easier to add new algorithms.
With the STL, the elements of containers are accessed through iterators.
The next several subsections demonstrate many of the STL algorithms.
94

95

22.5.1 fill, fill_n, generate and generate_n
Figure 22.26 demonstrates algorithms fill, fill_n, generate and generate_n.
Functions fill and fill_n set every element in a range of container elements to a specific value.
Functions generate and generate_n use a generator function to create values for every element in a range of container elements.
The generator function takes no arguments and returns a value that can be placed in an element of the container.
96

22.5.3 remove, remove_if, remove_copy and remove_copy_if
Figure 22.28 demonstrates removing values from a sequence with algorithms remove, remove_if, remove_copy and remove_copy_if.
97

22.5.4 replace, replace_if, replace_copy and replace_copy_if
Figure 22.29 demonstrates replacing values from a sequence using algorithms replace, replace_if, replace_copy and replace_copy_if.
98

22.5.5 Mathematical Algorithms
Figure 22.30 demonstrates several common mathematical algorithms from the STL, including random_shuffle, count, count_if, min_element, max_element, accumulate, for_each and transform.
99

22.5.6 Basic Searching and Sorting Algorithms
Figure 22.31 demonstrates some basic searching and sorting capabilities of the Standard Library, including find, find_if, sort and binary_search.
100

22.5.7 swap, iter_swap and swap_ranges
Figure 22.32 demonstrates algorithms swap, iter_swap and swap_ranges for swapping elements.
Line 18 uses function swap to exchange two values.
In this example, the first and second elements of array a are exchanged.
The function takes as arguments references to the two values being exchanged.
101

22.5.8 copy_backward, merge, unique and reverse
Figure 22.33 demonstrates STL algorithms copy_backward, merge, unique and reverse.
Line 26 uses function copy_backward to copy elements in the range from v1.begin() up to, but not including, v1.end(), placing the elements in results by starting from the element before results.end() and working toward the beginning of the vector.
The function returns an iterator positioned at the last element copied into the results (i.e., the beginning of results, because of the backward copy).
The elements are placed in results in the same order as v1.
102

22.5.8 copy_backward, merge, unique and reverse (Cont.)
This function requires three bidirectional iterator arguments (iterators that can be incremented and decremented to iterate forward and backward through a sequence, respectively).
One difference between copy_backward and copy is that the iterator returned from copy is positioned after the last element copied and the one returned from copy_backward is positioned at the last element copied (i.e., the first element in the sequence).
Also, copy_backward can manipulate overlapping ranges of elements in a container as long as the first element to copy is not in the destination range of elements.
103

Efficiency
STL designed with efficiency as
important consideration
Strives to be optimally efficient
Example: set, map elements stored in
sorted order for fast searches
Template class member functions:
Guaranteed maximum running time
Called “Big-O” notation, an “efficiency”-rating
19-104

104

Still stressed from student homework?
Get quality assistance from academic writers!

Order your essay today and save 25% with the discount code LAVENDER