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

📄 wzdprjct.h

📁 《vc++扩展编程实例》源码。运用Visual C++ 5.0或6.0的高级编程技巧
💻 H
字号:
// WzdPrjct.h : project include file
//
/////////////////////////////////////////////////////////////////////////////

#if !defined WZDPROJECT_H
#define WZDPROJECT_H


////////// defining a macro /////////////
#define WZD1
#define WZD2 7
#define WZD3(arg1,arg2) \	//"\" is continuation character (must not be anything on line after "\"!)
	arg1+arg2;				// ex: WZD3(1,2) becomes: 1+2

//////// conditional directives ///////////
#ifdef WZD1		//if defined, process next
#undef WZD1		//undefine WZD1
#endif			
#ifndef WZD1	//if WZD1 not defined, process next
#endif

#if WZD2 == 5	//if WZD2 equals 5, process next
	//
#elif WZD2 > 6
	//
#else
	//
#endif

////////// token manipulation ////////////////////
#define WZD4(arg1,arg2) \
	arg1+#arg2;				// "#" inserts double quotes around arg2
							// ex: WZD4(1,test) becomes: 1+"test"

#define WZD5(arg1,arg2) \
	arg1+#@arg2;			// "#@" inserts single quotes around arg2
							// ex: WZD5(1,t) becomes: 1+'t'

#define WZD6(arg1,arg2) \	
	arg1+arg2##3;			// concatinates arg2 to token
							// ex: WZD6(1,2) becomes: 1+23


//////////// predefined macros //////////////////////

// __FILE__ is the current source file name
//   example: Print(__FILE__); substitutes "WzdPrjct.cpp" for __FILE__

// __LINE__ is the current source file line
//   example: Print(__LINE__); substitutes "41" for __LINE__

// __DATE__ does the same for the date the file was compiled
// __TIME__ does the same for the time the file was compiled

// __cplusplus indicates this source module is being compiled using C++

#endif

⌨️ 快捷键说明

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