cdate.txt

来自「使用tasking for mc683XX C编译器」· 文本 代码 · 共 27 行

TXT
27
字号
CDate.txt

CDate.h		CDate class declaration
CDate.cpp   CDate class definition
test.cpp    program to test the CDate class

The CDate class demonstrates several features of C++ classes.
The CDate class is 'canonical' because it has the methods:
constructor, destructor, copy constructor and overloaded 
assignment operator, that are needed by 'well behaved' objects.

This class demonstrates the use of the destructor to invalidate
an object that has gone out of scope and the use of assert() to
warn the developer when an invalide object has been accessed.

The class demonstrates the following features:
  overloaded pre-increment, post-increment and equality operators.
  checking for valid input when setting data,
  an anonimous enum as part of the class,
  a private method,
  const methods,
  default function parameters,
  type bool.



⌨️ 快捷键说明

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