码迷,mamicode.com
首页 >  
搜索关键字:endif    ( 913个结果
uni-app APP端隐藏导航栏自定义按钮
话不多说,上代码 // #ifdef APP-PLUS var webView = this.$mp.page.$getAppWebview(); // 修改buttons webView.setTitleNViewButtonStyle(0, { width: '0', }); // #endif ...
分类:移动开发   时间:2020-04-25 12:46:08    阅读次数:798
USART1_IRQHandler 函数的理解
1 void USART1_IRQHandler(void) //串口 1 中断服务程序 2 { 3 u8 Res; 4 #if SYSTEM_SUPPORT_OS //如果 SYSTEM_SUPPORT_OS 为真,则需要支持 OS 5 OSIntEnter(); 6 #endif 7 if(US ...
分类:其他好文   时间:2020-04-20 23:26:17    阅读次数:290
Visuao Studio中C和C++代码混编
c和c++语言混合编译时候,需要修改c语言头文件 #ifdef __cplusplus extern "C" { #endif /******/ #ifdef __cplusplus } #endif ...
分类:编程语言   时间:2020-03-06 15:23:05    阅读次数:75
cmake使用ccache
来自 stackoverflow find_program(CCACHE_PROGRAM ccache) if (CCACHE_PROGRAM) set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}") endif ( ...
分类:系统相关   时间:2020-03-06 14:56:30    阅读次数:207
C log
#ifndef LOG2_H #define LOG2_H #include <stdio.h> class log2 { public: log2(); static void d(char* s); }; #endif // LOG2_H #include "log2.h" #include " ...
分类:其他好文   时间:2020-02-28 18:30:38    阅读次数:49
C语言预处理学习记录
```cpp #include #define LOCAL //无参宏 //条件编译 #ifdef LOCAL int a=1; #else int a=2; #endif #ifndef LOCAL int b=1; #else int b=2; #endif #define PI 3.14159... ...
分类:编程语言   时间:2020-02-27 19:16:00    阅读次数:78
在C代码调用C++代码
由于历史原因,以及不同开发人员的技术偏好,C语言和C++语言都有一些独有的非常有价值的项目,因而两种语言的互操作,充分利用前人造的轮子是一件非常有价值的事情。C++代码调用C代码很简单,只要分别在包含的C头文件的开头和结尾加上如下的两个块:123extern "C" {#endif和123}#end... ...
分类:编程语言   时间:2020-02-23 09:19:15    阅读次数:76
django中Template语言
Template本身也有自己的语言和语法,用来处理简单的数据显示 1. 常用语法 判断指令 {% if 条件 %}...{%endif%} {% if 条件 %}...{%elif 条件 %}...{%endif%} {% if 条件 %}...{%elif 条件 %}...{%else%}...{ ...
分类:编程语言   时间:2020-02-22 00:39:06    阅读次数:91
exctern C
在C++中调用C语言 因为C++扩展了函数重载。编译时会将函数名修改,所以直接条用会出错。 #ifdef __cplusplusextern "C" {#endif // __cplusplus /* #include <stdio.h> void show() */ #ifdef __cplusp ...
分类:其他好文   时间:2020-02-19 11:39:24    阅读次数:100
Makefile工程管理
Makefile工程管理 demo文件如下: sequence.h #ifndef _SEQUENCE_H_ #define _SEQUENCE_H_ void sequence(unsigned char*sp,unsigned char num); #endif sequence.c #incl ...
分类:其他好文   时间:2020-02-11 00:42:08    阅读次数:71
913条   上一页 1 2 3 4 5 6 ... 92 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!