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

📄 chk_dirfile.cpp

📁 一个不错
💻 CPP
字号:
/* Copyright is licensed under GNU LGPL.                 by I.J.Wang 2003   Check Wy_DirFile public members   Build: make chk_dirfile   Note: Test data files should exist in the working directory         Files may be created in the working directory and unlinked*/#include "wy_dirfile.h"#include <sys/types.h>#include <unistd.h>#include <sys/wait.h>#include <iostream>#if WY_DIRFILE_VERSION!=31#error Test code is for WY_DIRFILE_VERSION 31#endifextern void ck_dirfile(void);static WyStr chdr("+---------------+\n"                  "| main() caught:|\n"                  "+---------------+\n");int main(void) throw()try { std::cout << "Checking wy_dirfile.h ...\n"; if(std::strcmp(Wy_DirFile::class_name,"Wy_DirFile")!=0) {   WY_THROW( WyRet() ); } ck_dirfile(); std::cout << "Checked Ok\n"; return(0);}catch(const WyRet& e) { std::cerr << chdr.c_str() << Wy::wrd(e).c_str() << std::endl; return(-1);}catch(const std::exception& e) { std::cerr << chdr.c_str() << "std::exception" << std::endl; return(-1);}catch(...) { std::cerr << chdr.c_str() << "unknown unwind" << std::endl; return(-1);};

⌨️ 快捷键说明

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