摘要:
#include"stdafx.h"#include <iostream.h>#include <string.h>//类描述异常信息class Matherr{protected: char m_szMsg[32];public: virtual const char *GetMsg()const { return m_szMsg; }};class Overflow... 阅读全文
摘要:
#include"stdafx.h"#include <iostream.h>classVector{private: int *p; int m_nLen;public: Vector(int nLen) { p = newint [nLen]; m_nLen = nLen; } ~Vector( ) { delete [] p; } int size() { retu... 阅读全文
摘要:
#include"stdafx.h"#include <iostream.h>#include <string.h>class DivideZero{public: //带参构造 DivideZero( const char* pStr ) { strcpy(szMessage, pStr); } //拷贝构造 DivideZero(const DivideZero &am... 阅读全文