Exceptions

Table of contents:

Review Questions

1.

What is the difference between a compound statement and a simple statement?

2.

How can you guarantee that at least one case will be executed for any given switch value?

3.

What are the advantages and disadvantages of the three iteration structures? For each, discuss the kinds of situations that would lead you to prefer using it rather than the other two.

4.

What happens if a thrown exception is not caught?

5.

How can an author of client code know what exceptions need to be handled from a function?

6.

How can you catch an unforseen exception?

7.

In response to a throw, what happens to the stack?

8.

After an exception is handled, how do we return to the location of the tHRow?

9.

Why should we always catch objects by reference or pointer?

10.

What happens when a destructor throws an exception?

11.

What happens when a constructor throws an exception?

12.

Which types are preferable for throwing, basic types or object types? Explain the advantages of one over the other.


Part I: Introduction to C++ and Qt 4

C++ Introduction

Classes

Introduction to Qt

Lists

Functions

Inheritance and Polymorphism

Part II: Higher-Level Programming

Libraries

Introduction to Design Patterns

QObject

Generics and Containers

Qt GUI Widgets

Concurrency

Validation and Regular Expressions

Parsing XML

Meta Objects, Properties, and Reflective Programming

More Design Patterns

Models and Views

Qt SQL Classes

Part III: C++ Language Reference

Types and Expressions

Scope and Storage Class

Statements and Control Structures

Memory Access

Chapter Summary

Inheritance in Detail

Miscellaneous Topics

Part IV: Programming Assignments

MP3 Jukebox Assignments

Part V: Appendices

MP3 Jukebox Assignments

Bibliography

MP3 Jukebox Assignments



An Introduction to Design Patterns in C++ with Qt 4
An Introduction to Design Patterns in C++ with Qt 4
ISBN: 0131879057
EAN: 2147483647
Year: 2004
Pages: 268

Flylib.com © 2008-2020.
If you may any questions please contact us: flylib@qtcs.net