Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 140 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
140
Dung lượng
5,48 MB
Nội dung
[...]... least easy to catch In Part III we apply all the rules and code of the Safe C++ library introduced in Part II and discuss the testing strategy that shows how to catch bugs in the most efficient manner Preface | xi We also discuss how to make your program “debuggable.” One of the goals when writing a program is to make it easy to debug, and we will show how our proposed use of error handling adds to our... that lets the compiler know how to convert an Apple into an Orange is to provide a conversion operator: class Apple { public: // constructors and other code … operator Orange () const; }; The very presence of this operator suggests that the programmer made an explicit effort to provide the compiler with a way to convert Apple into Orange, and therefore it might not be a mistake However, the absence of... argc, char* argv[]) { cout . also discuss how to make your program “debuggable.” One of the goals when
writing a program is to make it easy to debug, and we will show how our proposed. trouble understanding such concepts as the constructor, copy-constructor,
assignment operator, destructor, operator overloading, virtual functions, exceptions,
etc.