#if 1#define DEBUGP(fmt, ...) printf("%s(%d): "fmt"\n", __func__, __LINE__, ##__VA_ARGS__)#else#define DEBUGP(fmt, ...)#endif 将宏的值转换为字符串 #define __STR ...
分类:
系统相关 时间:
2019-01-05 10:48:22
阅读次数:
291
<!--[if !supportLists]-->(1) <!--[endif]-->单例模式(字面量定义)var obj={} <!--[if !supportLists]-->(2) <!--[endif]-->类的实例 var obj=new Obeject() <!--[if !suppor ...
分类:
其他好文 时间:
2019-01-03 20:12:30
阅读次数:
179
// FindFileDebug.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include "FindFileDebug.h"#ifdef _DEBUG#define new DEBUG_NEW#endif#define IS_DIRECTORY(x) (( ...
分类:
编程语言 时间:
2019-01-01 21:45:51
阅读次数:
220
本质:字符串替换 语法 变量相关: {{ name }},{{name|length}},{{name|default:"默认值"}} 逻辑相关: 1. if判断 {% if a > b %} {% endif %} {% if a > b %} {% else %} {% endif %} {% ...
分类:
其他好文 时间:
2018-12-29 01:02:34
阅读次数:
205
网页兼容性测试工具: 1.IE Tester 2.Multibrowser 判断IE版本的方法: 1.条件判断格式<?--[if 条件 版本]>那么显示<![endif]--> 2.不等于:[if !IE 8] 除了IE8都可以显示 3.小于:[if lt IE 5.5] 如果IE浏览器版本小于5. ...
分类:
其他好文 时间:
2018-12-23 17:53:03
阅读次数:
80
为方便区分流程语句的开始和结束位置,可以使用PHP提供的替代语法进行编码。 左花括号({) 替换成 → 冒号(:) 右花括号(}) 替换成 → “endif;” "endwhile;" "endfor;" "endforeach;" "endswitch;" 质数(prime number)又称 " ...
分类:
Web程序 时间:
2018-12-22 22:42:24
阅读次数:
243
#include "stdafx.h" #include "GetToken.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif //////////// ...
分类:
其他好文 时间:
2018-12-19 18:37:07
阅读次数:
161
#ifdef __cplusplus extern "C" { #endif // C 样式的代码声明 #ifdef __cplusplus } #endif 这样的代码到底是什么意思呢? 首先,__cplusplus是cpp中的自定义宏,那么定义了这个宏的话表示这是一段cpp的代码,也就是说,上面 ...
分类:
其他好文 时间:
2018-12-19 13:09:59
阅读次数:
124
题目:编写函数,对于给定的二维整型数组,首先对每行从小到大排序,之后对每列从小到大排序;反复执 行上述排序过程,直到没有变动为止。注:作为实参的二维整型数组,每行元素个数不低于 3 且每列 元素个数不低于 4。 算法分析: <!--[if !supportLists]-->1. <!--[endif ...
分类:
编程语言 时间:
2018-12-11 01:35:35
阅读次数:
180
本文主要介绍c语言中条件编译相关的预编译指令,包括 #define、#undef、#ifdef、#ifndef、#if、#elif、#else、#endif、defined。 #define 定义一个预处理宏#undef 取消宏的定义#if 编译预处理中的条件命令,相当于C语法中的if语句#ifde ...
分类:
编程语言 时间:
2018-12-06 12:10:34
阅读次数:
261