码迷,mamicode.com
首页 > 其他好文
字节和unicode
一、字节和unicodeJava内核是unicode的,就连class文件也是,但是很多媒体,包括文件/流的保存方式是使用字节流的。因此Java要对这些字节流经行转化。char是unicode的,而byte是字节。Java中byte/char互转的函数在sun.io的包中间有。其中ByteToCha...
分类:其他好文   时间:2015-04-05 23:12:30    阅读次数:189
Leetcode #124 Binary Tree Maximum Path Sum
题目链接:https://leetcode.com/problems/binary-tree-maximum-path-sum/题中要求 maxPathSum(TreeNode *root)函数返回二叉树中最大的"Path Sum"。而这个最大的"Path Sum"可以被分解为三部分之和:"左子树的...
分类:其他好文   时间:2015-04-05 23:11:44    阅读次数:158
lower_bound() 与 upper_bound()
#include #include //必须包含的头文件using namespace std;int main(){int point[10] = {1,3,7,7,9};int tmp = upper_bound(point, point + 5, 7) - point;//按从小到大,7最多能...
分类:其他好文   时间:2015-04-05 23:09:37    阅读次数:195
GIT使用的记录
使用的是win7下的git安装就不赘述了下面的文档说的很详细Git客户端图文详解如何安装配置GitHub操作流程攻略 http://www.ihref.com/read-16377.html到下面这一步时要选择第二个,这样右键会有git选项配置SSHkey创建本地sshssh-keygen -t r...
分类:其他好文   时间:2015-04-05 23:09:33    阅读次数:191
DOM元素尺寸和位置
一、获取元素 CSS大小1.通过style 内联获取元素的大小var box = document.getElementById('box'); //获取元素box.style.width; //200px、空box.style.height; //200px、空style 获取只能获取到行内sty...
分类:其他好文   时间:2015-04-05 23:07:18    阅读次数:229
HelloWorld入门
HelloWorld入门 代码解释: AppDelegate.h类是Cocos2d-x引擎要求实现的游戏应用委托对象,在Cocos2d-x游戏 运行的不同生命周期阶段会触发他的不同函数 AppDelegate继承了cocos2d::Application,是Cocos2d-x引擎提供的基类 ...
分类:其他好文   时间:2015-04-05 23:10:08    阅读次数:190
(转)OpenCV学习:OpenCV2.4.8+VS2010开发环境配置
初学OpenCV,关于OpenCV的环境配置,在网上搜索了很多方法,最后自己终于搞定了,纪念一下。。。配置的过程深受一篇博文的影响,该博文讲述的十分清楚,特此转载过来,和大家分享!!!!!本系列文章由zhmxy555(毛星云)编写,转载请注明出处。文章链接:http://blog.csdn.net/...
分类:其他好文   时间:2015-04-05 23:07:19    阅读次数:258
google和baidu搜索命令
在google里面搜索一点儿老外的资料的时候发现搜不到我想要的东西,以前貌似见过一个搜索命令的但是一时想不起来了,所以就去搜索了一下搜索命令,常用的在这里全部列举出来:google:绿色的较为常用的命令,黄色的是不常 用但却非常有用的命令,蓝色是Google不推荐使用的命令。allinanchor:...
分类:其他好文   时间:2015-04-05 23:08:54    阅读次数:219
ZOJ 3180 Number Game(模拟,倒推)
题目思路:先倒推!到最后第二步,然后:初始状态不一定满足这个状态。所以我们要先从初始状态构造出它出发的三种状态。那这三种状态跟倒推得到的状态比较即可。#include#include#include using namespace std;int t,a[5],b[5];int main(){ .....
分类:其他好文   时间:2015-04-05 23:07:54    阅读次数:205
3892: [Usaco2014 Dec]Marathon
3892: [Usaco2014 Dec]MarathonTime Limit:10 SecMemory Limit:128 MBSubmit:169Solved:100[Submit][Status][Discuss]DescriptionUnhappy with the poor health ...
分类:其他好文   时间:2015-04-05 23:06:54    阅读次数:265
快乐生活
其实,我们每天有时候给自己订了一个目标一个计划,但最后都没有执行,人一旦一件事没有做到,接着有好多事情都不想做了。 不记得谁说过,每个人每天都至少强迫自己做2件事,突然,觉得很有道理。毕竟,如果你不强迫自己做任何事情,那你就真的是好多事情都做不了。 其实,人真的是可以过得很幸福很惬意的,我们其实没....
分类:其他好文   时间:2015-04-05 23:07:50    阅读次数:192
frmax
难点总结1.先HOOK 库,支持x86/x64。先了easyhook,还要把easyhook编译成static library形式2.ipc通讯,hook到信息后,要综合到服务中心进程保存。选择了rpc通讯3.编写的勾子dll注入采用了appinit_dll方式,dll不能依赖太多库。只能使用ker...
分类:其他好文   时间:2015-04-05 23:06:50    阅读次数:203
protobuf简单序列化反序列化示例
protoc命令格式 protoc -I=SRC -cpp_out = DRC SRC\*.proto SRC:源路径;DRC:目的路径;当出现下面无法打开文件错误时,应在工程属性目录下的包含目录文件中添加工程所在路径 D:\!exercise\c++\protob1\protob1\错误 1 e....
分类:其他好文   时间:2015-04-05 23:06:29    阅读次数:905
常见的广告域名
127.0.0.1?googleads.g.doubleclick.net 127.0.0.1?cb.baidu.com 127.0.0.1?eclick.baidu.com 127.0.0.1?pos.baidu.com 127.0.0.1?cpro.baidustatic.com 127.0.0.1?cbjslog.baidu.com 127.0.0.1?static.ac...
分类:其他好文   时间:2015-04-05 22:03:38    阅读次数:216
this 关键字的功用-显示调用构造函数。
Calling constructors from constructors ? sited by<THINK IN JAVA> p118 When you write several constructors for a class, there are times when you’d like to call one constructor from another to avoi...
分类:其他好文   时间:2015-04-05 22:05:07    阅读次数:265
LeetCode26/27/80 Remove Duplicates from Sorted Array I and II/Remove Element**
题目: Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space for another array, you must do this in pla...
分类:其他好文   时间:2015-04-05 22:01:48    阅读次数:178
组队赛#1 解题总结 ZOJ 3803 YY's Minions (DFS搜索+模拟)
YY's Minions Time Limit: 2 Seconds      Memory Limit: 65536 KB Despite YY's so much homework, she would like to take some time to play with her minions first. YY lines her minions up to an...
分类:其他好文   时间:2015-04-05 22:00:47    阅读次数:262
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!