废话不多说。。
#include
class CNumber
{
public:
CNumber()
{
m_nOne = 1;
m_nTwo = 2;
}
int __stdcall GetNumberOne()
{
return m_nOne;
}
int GetNumberTwo()
{
return m_nTwo;
}1: #include
2:...
分类:
其他 时间:
2015-04-07 17:40:05
收藏:
0 评论:
0 赞:
0 阅读:
198
??
问题描述:
Implement
atoi to convert a string to an integer.
Hint: Carefullyconsider all possible input
cases. If you want a challenge, please do not seebelow and ask yourself what are the p...
分类:
其他 时间:
2015-04-07 17:39:24
收藏:
0 评论:
0 赞:
0 阅读:
98
很多cocos2d开发的游戏,比如圣火英雄传、武侠Q传等,都使用TexturePacker加密资源。通过IDA debug so,可以破解出这些游戏的美术资源。...
分类:
其他 时间:
2015-04-07 17:39:14
收藏:
0 评论:
0 赞:
0 阅读:
271
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.
For example,
If n = 4 and k = 2, a solution is:
[
[2,4],
[3,4],
[2,3],
[1,2],
[1,3],
[1,4],
]...
分类:
其他 时间:
2015-04-07 17:39:05
收藏:
0 评论:
0 赞:
0 阅读:
146
??
Tiling_easy version
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 5910 Accepted Submission(s): 4646
Problem Description
有一个大...
分类:
其他 时间:
2015-04-07 17:38:54
收藏:
0 评论:
0 赞:
0 阅读:
157
TCP是一种可靠的面向连接的数据流协议,TCP之所以可靠,是因为它保证了数据的传输有序,这是通过一个序列号和确认号来保证的。
序列号的作用:
TCP将应用层数据和管理数据的每一字节进行顺序编号,序列号用于指出本报文段携带数据的第一个字节的序列号,(SYN,FIN等算作一个字节数据)
确认号的作用:
通信双方采用确认号来对收到的数据进行确认,该确认号之前(不包括该确认号)的所有数...
分类:
其他 时间:
2015-04-07 17:38:24
收藏:
0 评论:
0 赞:
0 阅读:
145
import java.util.Scanner;
//普利姆
public class Main {
static final int MAXVEX =65535;
static final int MINVEX =65535;
public static void main(String[] args) {
MyGrop p = new MyGrop();
MinSpanTree...
分类:
其他 时间:
2015-04-07 17:37:24
收藏:
0 评论:
0 赞:
0 阅读:
251
本文目的很明确,并不是要逐步讲清楚每一步的操作,具体的步骤网上有很多,那么整理本文的目的只是要梳理一下自己的知识点,帮助自己加深理解。
小知识点积累:
域名地址的修改:
根据演示需求,用修改hosts文件的方法添加域名最简单方便(这个非常重要),在文件 C:\Windows\System32\drivers\etc\hosts 文件中添加三条
127.0.0.1...
分类:
其他 时间:
2015-04-07 17:36:34
收藏:
0 评论:
0 赞:
0 阅读:
307
mybatis 用到枚举值的解决方式 之一。...
分类:
其他 时间:
2015-04-07 17:36:14
收藏:
0 评论:
0 赞:
0 阅读:
350
很多人问游戏AI该怎么做?随着游戏类型的多元化,非 MMO或者卡牌的游戏越来越多,对AI的需求也越来越强了。而市面上关于 AI的书,网上找得到的文章,也都流于一些只言片语的认识,理论化的套路,和一些简单的 DEMO,离真正的项目差距甚远,无法前后衔接成一条线,更无法真正落地到编码。
国内真正做过游戏AI的少之又少,东拉西扯的人很多,真正做过项目的人很少,因为国内主要以MMO为主,RTS比较少...
分类:
其他 时间:
2015-04-07 17:36:04
收藏:
0 评论:
0 赞:
0 阅读:
220
结构型模式:
适配器模式:
用来把一个接口转化成另一个接口。
java.util.Arrays#asList()javax.swing.JTable(TableModel)java.io.InputStreamReader(InputStream)java.io.OutputStreamWriter(OutputStream)javax.xml.bind.annotation.a...
分类:
其他 时间:
2015-04-07 17:35:54
收藏:
0 评论:
0 赞:
0 阅读:
244
算法简述
动作类游戏如何在高延迟下实现同步?不同的客户端网络情况,如何实现延迟补偿?十年前开始关注该问题,转眼十年已过,看到大家还在问这类问题,旧文一篇,略作补充(关于游戏同步相关问题还可以见我写于2005年的另外两篇文章,帧锁定算法 和 网游同步法则):
影子跟随算法由普通DR(dead reckoning)算法发展而来,我将其称为“影子跟随”意再表示算法同步策略的主要思想...
分类:
其他 时间:
2015-04-07 17:35:45
收藏:
0 评论:
0 赞:
0 阅读:
452
HIG
https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/index.html#//apple_ref/doc/uid/TP40006556-CH66-SW1...
分类:
其他 时间:
2015-04-07 17:35:14
收藏:
0 评论:
0 赞:
0 阅读:
111
一: 查询关于OpenGL2.0实现信息:
1: 原型: const GLubyte* glGetString(GLenum name)
参数: GL_VENDOR, GL_RENDERER, GL_VERSION;
二: 查询关于OpenGL2.0实现依赖限制:
1:原型: void glGetBoolean...
分类:
其他 时间:
2015-04-07 17:34:54
收藏:
0 评论:
0 赞:
0 阅读:
360
#include
using namespace std;
#define maxn 10
int vis[maxn][maxn] = {0};
int cnt = 0;
bool judge(int i, int j)
{
if(i<4 && j<5) return true;
return false;
}
void dfs(int i, int j)
{
i...
分类:
其他 时间:
2015-04-07 17:34:34
收藏:
0 评论:
0 赞:
0 阅读:
117
【题目】
Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary).
You may assume that the intervals were initially sorted according to their start t...
分类:
其他 时间:
2015-04-07 17:34:14
收藏:
0 评论:
0 赞:
0 阅读:
200
演练:创建和使用动态链接库 (C++)
由于最近用到DLL,所以赶紧突击学习一下,找到了一些自认为比较好的练手材料,收集整理给后来人,也为了总结下,如下:
先来个网友 写的,热热身,但是请注意——extern "C"问题,详情请关注http://blog.csdn.net/lxw907304340/article/details/44922291;
...
分类:
其他 时间:
2015-04-07 17:34:05
收藏:
0 评论:
0 赞:
0 阅读:
233
Spark Submit如何提交作业...
分类:
其他 时间:
2015-04-07 17:33:54
收藏:
0 评论:
0 赞:
0 阅读:
319
一、int.Parse(string 变量名)该方式是将数字内容的字符串转换为int类型1.如果字符串的内容为Null ,则抛出ArgumentNullException异常;2.如果字符串内容不是数字,则抛出FormatException异常;3.使用该方法只能处理字符串的内容,而且转换后的字符串...
分类:
其他 时间:
2015-04-07 17:32:54
收藏:
0 评论:
0 赞:
0 阅读:
196
Notification分为普通通知和自定义的两种,由图标、ticker(提示信息)、标题、内容、时间、事件组成,普通通知demo: 1 package com.android.hzynotification; 2 3 import android.app.Activity; 4 import a....
分类:
其他 时间:
2015-04-07 17:31:24
收藏:
0 评论:
0 赞:
0 阅读:
250