经常有QT MFC程序调用动态库无法查看内部打印 解决办法: 文件头部定义: #define UseDebugView #ifdef UseDebugView char g_Debug[256]; #endif 在需要打印的地方使用: #ifdef UseDebugView sprintf_s(g_ ...
分类:
数据库 时间:
2018-09-25 17:30:28
阅读次数:
206
1. 语法: {% if xxx %} {% else %} {% endif %} 2. if的使用,和python中if相差无几 用if判断,当用户名存在且年龄大于18时,才显示用户名和注销 ...
分类:
其他好文 时间:
2018-09-22 21:24:40
阅读次数:
1014
恢复内容开始 第二章 核心C# 2.7 命名空间可以使用别名,但是这样做有什么好处? 2.12 C#预处理器指令 #define DEBUG #if DEBUG Console.WriteLine("hahaha..."); #endif 恢复内容结束 第二章 核心C# 2.7 命名空间可以使用别名 ...
#include #include #include #include #ifdef WIN32 #include #else #include // linux下头文件 #endif #define FILE_MAX_SIZE (1024*1024) /* 获得当前时间字符串 @param buf... ...
分类:
编程语言 时间:
2018-09-17 19:42:15
阅读次数:
227
#CSS Hack 1.条件注释Hack <!--[if IE]> <p>IE浏览器可以识别</p> <![endif]--> <!--if lte IE 8> <p>IE8-浏览器可以识别</p> <![endif]--> <!--[if gt TE 8]> <p>大于TE8浏览器可以识别</p> ...
分类:
其他好文 时间:
2018-09-11 11:23:59
阅读次数:
321
if判断delimiter//CREATEPROCEDUREproc_if()BEGINdeclareiintdefault0;ifi=1THENSELECT1;ELSEIFi=2THENSELECT2;ELSESELECT7;ENDIF;END//delimiter;while循环delimiter//createproceduerproc_while()begindeclarenumint;s
分类:
数据库 时间:
2018-09-01 12:11:03
阅读次数:
197
第1章 文件结构1.版权和版本的声明2.头文件的结构【规则1-2-1】为了防止头文件被重复引用,应当用ifndef/define/endif结构产生预处理块。【规则1-2-2】用 #include <filename.h> 格式来引用标准库的头文件(编译器将从标准库目录开始搜索)。【规则1-2-3】 ...
分类:
编程语言 时间:
2018-08-30 12:23:51
阅读次数:
150
<!--[if !supportLists]-->1、 <!--[endif]-->互联网协议,可看作是一个安装在计算机上的包 <!--[if !supportLists]-->2、 <!--[endif]-->交换机:有mac地址学习功能 <!--[if !supportLists]-->3、 < ...
分类:
其他好文 时间:
2018-08-29 21:25:41
阅读次数:
222
条件<condition> ,<condition> 内为计算成an integer or boolean value的表达式。 表达式的值1则条件为真,否则为假。 1.if(<condition>)。。。 endif:条件为真时,执行条件后的内容,否则转到endif. 2.if (<conditi ...
分类:
其他好文 时间:
2018-08-28 17:59:46
阅读次数:
335
error: #5: cannot open source input file "spi.h": No such file or directory 1.出现这种问题,首先要确认头文件的命名要与文件名一致,如下: #ifndef _SPI_H #define _SPI_H #endif 2.添加路 ...
分类:
其他好文 时间:
2018-08-27 12:46:15
阅读次数:
437