码迷,mamicode.com
首页 >  
搜索关键字:pragma    ( 2499个结果
Gif动态图UIImage
#pragma mark 动态图生成 -(UIImage *)getAnimatedGIFWithData:(NSString *)path { NSData *data = [NSData dataWithContentsOfFile:path]; if (!data) { return nil;... ...
分类:其他好文   时间:2018-10-22 20:15:04    阅读次数:414
#pragma once
在C/C++中,为了避免同一个头文件被重复包含,最常用的方式是:#ifndef ... #define ... #endif,除此之外还有一种方式:#pragma once。 第一种方式: 第二种方式: #ifndef, #define, #endif是C/C++语言中的宏定义,通过宏定义避免文件多 ...
分类:其他好文   时间:2018-10-22 20:14:56    阅读次数:137
015 设计模式之策略模式
抽象策略角色: 策略类,通常由一个接口或者抽象类实现。 -具体策略角色:包装了相关的算法和行为。 -环境角色:持有一个策略类的引用,最终给客户端调用。 #pragma once //策略接口(纯虚函数)class IStrategy{public: IStrategy() {} virtual ~I ...
分类:其他好文   时间:2018-10-22 13:04:28    阅读次数:134
HDU - 4436sam裸题
题意:给你多个数字串,求本质不同的子串和(去掉前导零) 题解:建广义sam,刚开始一直想的是用l来计算,发现前导零对l的影响根本消不掉,所以不会做= =,原来应该是直接用一个新的数组表示到当前有多少个子串就好了 // pragma GCC optimize(2) // pragma GCC opti ...
分类:其他好文   时间:2018-10-18 14:07:57    阅读次数:145
MAC地址获取
#include "iphlpapi.h" #pragma comment(lib, "iphlpapi.lib ") CString ODFSDownLoadThread::GetMacAddress() { CString strMac; strMac.Format(_T("")); u_cha... ...
分类:系统相关   时间:2018-10-17 14:58:19    阅读次数:175
Luogu P1009 【阶乘之和】
听说有人跟我比代码长…… 祭出祖传的高精度类型水一波…… 大概也就9k代码这样子…… 代码: cpp pragma GCC optinize(3) pragma comment(linker, "/STACK:102400000,10240000") include define LEN 35663 ...
分类:其他好文   时间:2018-10-15 20:25:05    阅读次数:172
C++ API实现创建桌面快捷方式
1 #include 2 #include 3 #include 4 #include 5 #pragma comment(lib, "shell32.lib") 6 using namespace std; 7 #ifdef _UNICODE 8 typedef wstring tstring; ... ...
分类:编程语言   时间:2018-10-13 18:17:18    阅读次数:365
Windows获取进程完整路径
#include <stdio.h> #include <locale.h> #include <windows.h> #include <tlhelp32.h> #include <tchar.h> #include <Psapi.h> #pragma comment (lib,"Psapi.li ...
分类:Windows程序   时间:2018-10-12 21:12:42    阅读次数:233
3-6 中缀表达式转换成后缀表达式
1>e:\极速考拉下载目录\vs2013(visual studio 2013旗舰版)\vc\include\xtgmath.h(214): warning C4602: #pragma pop_macro:“new”该标识符前面没有 #pragma push_macro1>e:\极速考拉下载目录\ ...
分类:其他好文   时间:2018-10-12 14:00:09    阅读次数:310
C/C++获取CPU等硬件信息&&屏幕截图
打算练习Socket的时候用用,最近有点小事情,没时间继续完善,先把写的这些代码贴上来,有空了再完善一下。 HardwareInfo.h 1 #include <stdio.h> 2 #include <windows.h> 3 #include <vfw.h> 4 5 #pragma commen ...
分类:编程语言   时间:2018-10-07 10:38:08    阅读次数:223
2499条   上一页 1 ... 31 32 33 34 35 ... 250 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!