exceptions.h

来自「压缩包里有教材<<C++模式设计-基于QT4开源跨平台开发框架&gt」· C头文件 代码 · 共 36 行

H
36
字号
#ifndef EXCEPTIONS_H#define EXCEPTIONS_H#include <QString>namespace Registrar_Namespace {    class Exception {    public:        Exception (const QString& reason);        virtual ~Exception () { }        QString what () const;    private:        QString m_Reason;    };    class NoNumberException : public Exception {    public:        NoNumberException(const QString& reason);    };    class NoStudentException : public Exception {    public:        NoStudentException(const QString& reason);    };    class DupNumberException : public Exception {    public:        DupNumberException(const QString& reason);    };}#endif        //  #ifndef EXCEPTIONS_H

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?