chk_chrfile.cpp
来自「一个不错」· C++ 代码 · 共 42 行
CPP
42 行
/* Copyright is licensed under GNU LGPL. by I.J.Wang 2003 Check WyChrFile public members Build: make chk_chrfile Note: Test data files should exist in the working directory Files may be created in the working directory and unlinked*/#include "wychrfile.h"#include "wy_uty.h"#if WYCHRFILE_VERSION!=31#error Test code is for WYCHRFILE_VERSION 31#endifextern void ck_chrfile(bool);static const WyStr chdr( "+------------------+\n" "| main(..) caught: |\n" "+------------------+\n");int main(void) throw()try { Wy::cout << "Checking wychrfile.h ...\n"; if(std::strcmp(WyChrFile::class_name,"WyChrFile")!=0) { WY_THROW( WyRet() ); } ck_chrfile(true); Wy::cout << "Checked Ok\n"; return(0);}catch(const WyRet& e) { Wy::cerr << chdr << Wy::wrd(e) << '\n'; return(-1);}catch(...) { Wy::cerr << chdr << "unknown unwind\n"; return(-1);};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?