Skip to Main Content
Visual C++ 2008: How to Program, Second Edition
book

Visual C++ 2008: How to Program, Second Edition

by P. J. Deitel, H. M. Deitel, D. T. Quirk
December 2007
Intermediate to advanced content levelIntermediate to advanced
1552 pages
46h 20m
English
Pearson
Content preview from Visual C++ 2008: How to Program, Second Edition

Chapter 16. Exception Handling

 

It is common sense to take a method and try it. If it fails, admit it frankly and try another. But above all, try something.

 
 --Franklin Delano Roosevelt
 

O! throw away the worser part of it, And live the purer with the other half.

 
 --William Shakespeare
 

If they’re running and they don’t look where they’re going I have to come out from somewhere and catch them.

 
 --Jerome David Salinger
 

O infinite virtue! com’st thou smiling from the world’s great snare uncaught?

 
 --William Shakespeare
 

I never forget a face, but in your case I’ll make an exception.

 
 --Groucho Marx

OBJECTIVES

In this chapter you’ll learn:

  • What exceptions are and when to use them.

  • To use try, catch and throw to detect, handle and indicate exceptions, respectively. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Ivor Horton's Beginning Visual C++ 2012

Ivor Horton's Beginning Visual C++ 2012

Ivor Horton

Publisher Resources

ISBN: 9780136085652Purchase book