码迷,mamicode.com
首页 >  
搜索关键字:pragma macro    ( 2934个结果
iOS 设置RGB色的宏
转自:http://lizhuang.iteye.com/blog/1931768?//RGB Color macro#define UIColorFromRGB(rgbValue) [UIColor \colorWithRed:((float)((rgbValue & 0xFF0000) >> 1...
分类:移动开发   时间:2014-08-14 10:24:48    阅读次数:249
ZOJ3229 Shoot the Bullet(有源汇的上下界最大流)
#pragma warning(disable:4996)#include #include #include #include #include #include #include #include #include #include using namespace std;#define max...
分类:其他好文   时间:2014-08-14 03:43:37    阅读次数:232
去除内存上的警告,避免程序崩掉
# pragma clang diagnostic push# pragma clang diagnostic ignored "-Warc-performSelector-leaks" [self performSelector:callFunc withObject:array[1]];#...
分类:其他好文   时间:2014-08-14 01:24:27    阅读次数:245
ios获取当前wifi热点信息
#pragma mark - 获取当前连接wifi信息- (NSString *)returnWifiName{ NSString *wifiName = @"Not Found"; CFArrayRef myArray = CNCopySupportedInterfaces()...
分类:移动开发   时间:2014-08-13 18:13:06    阅读次数:184
深入浅出游戏算法(4)-unity3d算法(3)-移动摄像机
FindWithTag查找标签,Find查找名称,2个函数均查找游戏对象GameObject.FindWithTagGameObject.Find下面例子移动摄像机,同时追踪球的移动#pragma strict //code:myhaspl@myhaspl.com //date:2014-08-13 import System; var translate_object:Rigidbody; va...
分类:移动开发   时间:2014-08-13 13:05:06    阅读次数:362
MFC抓取网页代码。
本人是初学MFC,这几天都要弄怎么抓取网页代码,一开始是一头雾水,不过最后多亏网上的丰富资源,让我有所收获,我也帮助新手们,下面是我自己参考网上资料所得的。 1 #pragma once 2 3 4 //抓取网页代码封装类 5 6 #include //所需要的函数的头文件。 7 8 9...
分类:Web程序   时间:2014-08-13 13:00:36    阅读次数:362
HTTP 学习笔记03
通用信息头Cache-Control : no-cache(不缓存当前请求) [*]Connection:close(返回当前请求后立即断开)[*]Date:。。。(HTTP消息产生的时间)Pragma:no-cache (不缓存) [*]Trailer:Date(哪些能放到实体内容后的头字段)T....
分类:其他好文   时间:2014-08-13 01:06:14    阅读次数:169
vs2005 测试 lua环境
(1)添加文件核路径(2)库文件路径(3)main.cpp#include #include extern "C"{ #include #include #include }#pragma comment(lib, "lua51.lib")#pragma comment(lib, "lua5.1.....
分类:其他好文   时间:2014-08-12 18:37:14    阅读次数:172
深入浅出游戏算法(4)-unity3d算法(2)-移动球
通过声明gameobject对象,实现较通用脚本#pragma strict //code:myhaspl@myhaspl.com //date:2014-08-12 var rotate_object:GameObject; var translate_object:GameObject; var fuhao:int; fuhao=-1; function Update () { if (...
分类:移动开发   时间:2014-08-12 17:22:34    阅读次数:188
避免同一个文件被include多次的方法
C/C++中有两种方式避免同一个文件被include多次,一种是#ifndef方式,一种是#pragma once方式。     方式一:     #ifndef __SOMEFILE_H__     #define __SOMEFILE_H__     ... ... // 声明、定义语句     #endif     方式二:     #pragma once...
分类:其他好文   时间:2014-08-12 13:42:44    阅读次数:162
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!