码迷,mamicode.com
首页 >  
搜索关键字:pragma    ( 2499个结果
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
Treap模板
平衡树总是有用的,set由于过度封装没有办法实现找比x小的元素有多少个,这就显得很不方便了,所以封装了个Treap,万一以后用的着呢- -0#pragma warning(disable:4996)#include #include #include #include #include #inclu...
分类:其他好文   时间:2014-08-12 00:36:53    阅读次数:242
深入浅出游戏算法(4)-unity3d算法(1)
按以下布局放置好unity3d的各个组件,设置好渲染、位置、光源、大小等麦好的AI乐园博客所有内容是原创,如果转载请注明来源http://blog.csdn.net/myhaspl/编写下面代码:#pragma strictfunction Start () {   this.Start();}function Update () {   this.transform.Rotate(1,1,-1)...
分类:其他好文   时间:2014-08-11 17:47:52    阅读次数:241
POJ1273 最大流 EK算法
套了个EK的模板//#pragma comment(linker, "/STACK:16777216") //for c++ Compiler#include #include #include #include #include #include #include #include #includ...
分类:其他好文   时间:2014-08-11 17:21:02    阅读次数:189
2014 HDU多校弟六场J题 【模拟斗地主】
这是一道5Y的题目有坑的地方我已在代码中注释好了 QAQPs:模拟题还是练的太少了,速度不够快诶//#pragma comment(linker, "/STACK:16777216") //for c++ Compiler#include #include #include #include #in...
分类:其他好文   时间:2014-08-10 15:38:10    阅读次数:230
23Socket实现UDP服务器端和客户端连接传输
客户端 23UdpClient.cpp代码: // 23UdpClient.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include //Windows套接字所需的头文件 #include //Windows套接字接口的库文件 #pragma comment(lib, "WSOCK32.LIB") //程序使用的WinSock主版...
分类:其他好文   时间:2014-08-09 21:29:39    阅读次数:427
C++ 获取网页源码码的操作
#include #include #include #pragma comment(lib,"Wininet.lib")#include using namespace std;int _tmain(int argc, _TCHAR* argv[]){ vector v; TCHAR ...
分类:编程语言   时间:2014-08-09 11:33:47    阅读次数:229
UvaLive6661 Equal Sum Sets dfs或dp
UvaLive6661PDF题目题意:让你用1~n中k个不同的数组成s,求有多少种组法。题解:DFS或者DP或打表。1.DFS 由于数据范围很小,直接dfs每种组法统计个数即可。 1 //#pragma comment(linker, "/STACK:102400000,102400000") 2 ...
分类:其他好文   时间:2014-08-08 21:15:46    阅读次数:268
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!