首页 > 其他
4:虚幻引擎网络架构:技术要点总结篇
Replication要点1.simulated function在网络环境中只有exec,client , simulated 函数才在客户端进行调用。如果一个函数没有任何前缀,它只会在Server中进行调用。另外,对于一个simulated function,他要么是被另外一个simulated...
分类:其他   时间:2015-10-10 21:26:03    收藏:0  评论:0  赞:0  阅读:489
mybatis02 架构
SqlMapConfig.xml(mybatis全局配置文件加载mybatis环境(数据源,事物,mapper.xml(配置sql语句),),类似于hibernate的全局配置文件,用于加载hibernate的环境,名称不固定),mapper.xml(配置sql语句), mapper.xml.......
分类:其他   时间:2015-10-10 21:25:53    收藏:0  评论:0  赞:0  阅读:268
结构体做函数参数2
1 #define _CRT_SECURE_NO_WARNINGS 2 #include 3 #include 4 #include 5 6 typedef struct Teacher 7 { 8 char name[64]; 9 int age;10 int id;1...
分类:其他   时间:2015-10-10 21:25:34    收藏:0  评论:0  赞:0  阅读:248
Problem_42
Coded triangle numbersProblem 42The nth term of the sequence of triangle numbers is given by,tn=1/2n(n+1);so the first ten triangle numbers are: 1, 3,...
分类:其他   时间:2015-10-10 21:25:23    收藏:0  评论:0  赞:0  阅读:340
Leetcode - Jump Game Two
和Jump Game几乎相同的想法,他们是DP。关键是使用数组maxNumbers[k]储存的地方k步骤的话。序列号的最远范围,注阵maxNumbers[]它递增。class Solution {public: const int MAXVALUE = 1 index) { if (ma...
分类:其他   时间:2015-10-10 21:25:03    收藏:0  评论:0  赞:0  阅读:281
HDU 3549 Flow Problem(最大流)
Flow ProblemProblem DescriptionNetwork flow is a well-known difficult problem for ACMers. Given a graph, your task is to find out the maximum flow for...
分类:其他   时间:2015-10-10 21:24:43    收藏:0  评论:0  赞:0  阅读:385
yii中rights安装
具体安装程序可参考:http://www.focalhot.com/blog/5.html我在安装过程中一直存在问题,提示表auth_assignment不存在由于我是将项目中已有的代码复制过来,重新建库的,中间可能遗漏一些步骤,于是暴利解决了这个问题:手动建表,然后执行***/rights/ins...
分类:其他   时间:2015-10-10 21:24:23    收藏:0  评论:0  赞:0  阅读:222
STL中map与hash_map容器的选择
[转]STL中map与hash_map容器的选择先看看alvin_lee 朋友做的解析,我觉得还是很正确的,从算法角度阐述了他们之间的问题!实际上这个问题不光C++会遇到,其他所有语言的标准容器的实现及选择上都是要考虑的。做应用程序你可能觉得影响不大,但是写算法或者核心代码就要小心了。今天改进代码,...
分类:其他   时间:2015-10-10 21:23:54    收藏:0  评论:0  赞:0  阅读:211
Masonry的使用需要注意的地方
自动布局最重要的是约束:UI元素间关系的数学表达式。约束包括尺寸、由优先级和阈值管理的相对位置。它们是添加剂,可能导致约束冲突 、约束不足造成布局无法确定 。这两种情况都会产生异常。使用前:AutoLayout关于更新的几个方法的区别setNeedsLayout:告知页面需要更新,但是不会立刻开始....
分类:其他   时间:2015-10-10 21:23:43    收藏:0  评论:0  赞:0  阅读:344
Triangle
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, given the f...
分类:其他   时间:2015-10-10 21:23:23    收藏:0  评论:0  赞:0  阅读:234
Codeforces Round #319 (Div. 1)C. Points on Plane 分块思想
C. Points on PlaneOn a plane arenpoints (xi,yi) with integer coordinates between0and106. The distance between the...
分类:其他   时间:2015-10-10 21:23:04    收藏:0  评论:0  赞:0  阅读:189
性能测试、压力测试和负载测试的关系
一、性能测试和压力测试是什么关系?压力测试和负载测试什么关系? 1)压力测试是性能测试的一部分 2)负载测试是逐步增加系统的负载,测试系统性能的变化,最终确定满足性能指标的情况下,系统所能承受的最大负载量,其目的是找出系统的极限在哪,找出系统能承担多少并发,承担多少数据。是极限测试。找到极限就停.....
分类:其他   时间:2015-10-10 21:22:53    收藏:0  评论:0  赞:0  阅读:269
向云服务器部署django项目
1. ftp服务器的搭建为了把项目文件上传至云服务器,我们需要在云服务器端设置ftp服务,进行文件传输。(1)云服务器端a. 首先,我们需要安装vsftpd,输入命令 sudo apt-get install vsftpd -yb. 安装成功后,我们需要建立一个ftp专用账户。 检查一下nolo.....
分类:其他   时间:2015-10-10 21:22:43    收藏:0  评论:0  赞:0  阅读:317
HDU 5492 Find a path
Find a pathTime Limit: 1000msMemory Limit: 32768KBThis problem will be judged onHDU. Original ID:549264-bit integer IO format:%I64d Java class name:Ma...
分类:其他   时间:2015-10-10 21:22:33    收藏:0  评论:0  赞:0  阅读:325
sqrt()平方根计算函数的实现1——二分法
C语言标准库:http://www.cplusplus.com/reference/cmath/在一个区间中,每次拿中间数的平方来试验,如果大了,就再试左区间的中间数;如果小了,就再拿右区间的中间数来试。比如求sqrt(16)的结果,你先试(0+16)/2=8,8*8=64,64比16大,然后就向左...
分类:其他   时间:2015-10-10 21:22:23    收藏:0  评论:0  赞:0  阅读:342
信号量、互斥锁,读写锁和条件变量的区别
信号量强调的是线程(或进程)间的同步:“信号量用在多线程多任务同步的,一个线程完成了某一个动作就通过信号量告诉别的线程,别的线程再进行某些动作(大家都 在sem_wait的时候,就阻塞在那里)。当信号量为单值信号量是,也可以完成一个资源的互斥访问。有名信号量:可以用于不同进程间或多线程间的互斥与同步...
分类:其他   时间:2015-10-10 21:22:13    收藏:0  评论:0  赞:0  阅读:301
UVA-1149 Bin Packing (贪心)
题目大意:给定n个物品的重量,无限个容量为m的箱子,每个箱子最多装两个物品,要把所有的物品都装下,最少需要多少个箱子。题目分析:贪心策略:每次将最重和最轻的两个物品放到一个箱子里,如果装不下,则将最重的单独装到一个箱子里。代码如下:# include# include# include# inclu...
分类:其他   时间:2015-10-10 21:22:03    收藏:0  评论:0  赞:0  阅读:863
Scala 学习2
去map里面的数据scala> val map = Map("a"->1, "b"->2, "c"->3)map: scala.collection.immutable.Map[String,Int] = Map(a -> 1, b -> 2, c -> 3)scala> map("b")res4:...
分类:其他   时间:2015-10-10 21:21:53    收藏:0  评论:0  赞:0  阅读:274
一个常见的错误时编写代码
实验室阶段做练习,其中,变化bug称号:#include #include int main(int, char**){ std::vector** ppRandomData = distributeRandomInt(100); for (unsigned int i=0; isize(); k+...
分类:其他   时间:2015-10-10 21:21:43    收藏:0  评论:0  赞:0  阅读:245
LeetCode OJ:Missing Number (丢失的数)
Given an array containingndistinct numbers taken from0, 1, 2, ..., n, find the one that is missing from the array.For example,Givennums=[0, 1, 3]retur...
分类:其他   时间:2015-10-10 21:20:23    收藏:0  评论:0  赞:0  阅读:170
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!