转载请注明出处:http://blog.csdn.net/xingxiliang/article/details/18557631 更新:出品了box2d编辑工具PhysicsEditor的视频(一起做一个实战级别的游戏,需要MAC操作系统)http://blog.csdn.net/s_xing/artic...
分类:
其他好文 时间:
2015-07-26 15:55:47
阅读次数:
232
下拉菜单时一段代码搞定多个顶级栏目和子级栏目的同时输出。 <div> <ul> {dede:channelartlist row=6}只能首页用,子页要用改成{dede:channelartlist row=6 typeid=‘top‘} <li> <h3><a href=‘{dede:field name=‘...
分类:
其他好文 时间:
2015-07-26 15:56:37
阅读次数:
131
poj 3259 WormholesDescriptionWhile exploring his many farms, Farmer John has discovered a number of amazing wormholes. A wormhole is very peculiar because it is a one-way path that delivers you to its...
分类:
其他好文 时间:
2015-07-26 15:53:29
阅读次数:
216
A number chain is created by continuously adding the square of the digits in a number to form a new number until it has been seen before.
For example,
44 → 32 → 13 → 10 → 1 → 1
85 → 89 → 145 → 42...
分类:
其他好文 时间:
2015-07-26 15:52:18
阅读次数:
152
??
方法一:通过WMI得到连接属性NETCON_PROPERTIES,这个结构体定义如下:
typedef struct tagNETCON_PROPERTIES
{
GUID guidId;
LPWSTR pszwName;
LPWSTR pszwDeviceName;
NETCON_STATUS Status;
NETCO...
分类:
其他好文 时间:
2015-07-26 15:53:08
阅读次数:
141
??
最近因为项目有需要获取本机的所有存在的网络连接名称,在网上也找了资料,有好几种方法,不过就只有一种是能够达到我想要的要求
写下来给大家参考下
第一种方法:遍历注册表来获取
void __fastcall MyGetLanAdapterName(char *szLanAdapterName)
{
HKEY hKey, hSubKey, hNdiIntKey;
if(...
分类:
其他好文 时间:
2015-07-26 15:51:46
阅读次数:
195
15年7月份有幸参加了中科院软件所的夏令营,整个夏令营总共持续6天。20号开始报道,每个人领取宿舍钥匙,饭卡[只有¥100,软件所也是比较抠的,没有高校的待遇好,当然即便如此,报名参加的人数依然很多,呵呵]。晚上开了一次会,根据报考的实验室分组,每个组选一个临时负责人,然后是各自的自我介绍、交流互动。第二天是开营仪式,然后到楼下合影留念,接下来是几场报告,参观软件所的软件博物馆,晚上乘车游览帝都的夜...
分类:
其他好文 时间:
2015-07-26 15:52:47
阅读次数:
234
博客:http://blog.csdn.net/muyang_ren
为什么做项目?
1、巩固之前所学的知识,查漏补缺
2、通过做项目,锻炼在实际项目中解决问题的能力
3、锻炼与他人合作的能力服务器要求:
1、保存客户的信息
2、从数据库读出菜谱,发送给客户端
3、保存客户订单项目职责:服务器由同学完成
项目平台和技术:ubuntu 、socket、json、sqlit...
分类:
其他好文 时间:
2015-07-26 15:51:14
阅读次数:
187
#include
#include
#include
#include
//#include
using namespace std;
int n,m,sx,sy,ex,ey;
int Map[21][21];
int dir[8][2]={{-1,2},{1,2},//向右跳 0,1
{2,1},{2,-1},//向上跳 2,3...
分类:
其他好文 时间:
2015-07-26 15:51:43
阅读次数:
157
分析muduo网络库中,用于现场同步的互斥量和条件变量,以及一个组合CountDownLatch...
分类:
其他好文 时间:
2015-07-26 15:50:43
阅读次数:
297
Kth Smallest Element in a BST
Given a binary search tree, write a function kthSmallestto find the kth
smallest element in it.
Note:
You may assume k is always valid, 1 ≤ k ≤ BST's total elem...
分类:
其他好文 时间:
2015-07-26 15:52:22
阅读次数:
125
Excel技巧百例 01.对比两列数据,然后根据数据升降给出相关标识...
分类:
其他好文 时间:
2015-07-26 15:50:11
阅读次数:
196
Big Number
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 5984 Accepted Submission(s): 4182
Problem Description
As we know, Big N...
分类:
其他好文 时间:
2015-07-26 15:50:00
阅读次数:
93
Given a binary tree containing digits from 0-9 only, each root-to-leaf path
could represent a number.
An example is the root-to-leaf path 1->2->3 which represents the number 123.
Find the tota...
分类:
其他好文 时间:
2015-07-26 15:50:28
阅读次数:
113
题意:
给你n个人和一个k
问你把这n个人分成多少个连续的子区间,要求区间每个数两两相差绝对值小于k
思路:
我们仅仅只需要对于当前位置,最左边那个和它绝对值相差大于等于k 的位置在哪
假设对于i这个位置,最左边的位置是tep,不存在的话tep=0
那么当且位置的贡献就是 sum[i]=min(i-tep,sum[i-1]+1);
那么对于这个位置怎么求的话,我是使用了两个单调队列
...
分类:
其他好文 时间:
2015-07-26 15:49:57
阅读次数:
95
Remove Element这道题和Remove Duplicates from Sorted Array类似,不同的是这里只要删除值等于给定值的元素即可,可以采用和前面的题相同的做法:可以将原来的数组看作一个栈,设定一个栈顶指针,在对数组进行遍历的时候,判断元素是否等于给定值,如果等于,则直接进行数组的下一个元素,如果不等于,则将该元素放入到栈顶,然后更新指针并处理数组的下一个元素。...
分类:
其他好文 时间:
2015-07-26 15:50:52
阅读次数:
132
在我们排版数学推导式时,很多时候我们希望能够让公式的等号对齐这样更接近人的数学推导习惯如下图效果图使用 begin{aligned} end{aligned将所需对齐的数学公式代码块包起来即可代码如下注意!公式等号的前需要有制作表格的符号 & $ f(x)=2*x^3-x-2 $ \quad unique zero $ \hat{x} \in [1, 2] $
\begin{enumerate}...
分类:
其他好文 时间:
2015-07-26 15:51:10
阅读次数:
143