⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chk_chrfile.cpp

📁 一个不错
💻 CPP
字号:
/* 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -