hanoi塔:
原题大意我就不说明了,大家懂得
#include
void move(int n,char x,char y)
{
printf("move %d from %c to %c\n",n,x,y);
}
int hanoi(int n,char x,char y,char z)
{
if(n==1)
move(1,x,z);
else
{
hanoi(n-1,x,z,y);
mo...
分类:
其他好文 时间:
2014-11-30 14:08:45
阅读次数:
125
QML中的布局管理
1. 定位器
Column
Row
Grid
Flow
2. 重复器Repeater
3. 使用切换
四个定位器中都有一个add和move属性,都需要分配一个Transition对象
QML中给予锚的布局
anchor.margins来指定四个相同的边距
leftMargin、rig...
分类:
其他好文 时间:
2014-11-29 21:47:42
阅读次数:
1639
function getStyle(obj,name){ return obj.currentStyle?obj.currentstyle[name]:getComputedStyle(obj,false)[name];};function move(obj,json,options){ optio...
分类:
其他好文 时间:
2014-11-29 00:07:13
阅读次数:
149
右值引用导言右值引用(及其支持的Move语意和完美转发)是C++ 11加入的最重大语言特性之一,这点从该特性的提案在C++ - State of the Evolution列表上高居榜首也可以看得出来。从实践角度讲,它能够完美解决C++ 中长久以来为人所诟病的临时对象效率问题。从语言本身讲,它健全了...
分类:
编程语言 时间:
2014-11-28 17:55:49
阅读次数:
322
Don't Get RookedIn chess, the rook is a piece that can move any number of squares vertically or horizontally. In this problem we will consider small c...
分类:
其他好文 时间:
2014-11-28 14:02:19
阅读次数:
179
在这里我说的还是那种匀速运动,主要是通过改变一个盒模形的left值和top 值,来实现运动,或者,改变模形的自身的属性,来动起来:function getStyle(obj,name){ return obj.currentStyle?obj.currentStyle[name]:getComput...
分类:
其他好文 时间:
2014-11-28 00:49:36
阅读次数:
173
Circle
Time Limit: 2000ms Memory limit: 65536K 有疑问?点这里^_^
题目描述
You have been given a circle from 0 to n?-?1. If you are currently at x, you will move to (x?-?1) mod n or (x?+?1...
分类:
其他好文 时间:
2014-11-27 20:36:39
阅读次数:
235
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).
The robot can only move either down or right at any point in time. The robot is trying to reach the ...
分类:
编程语言 时间:
2014-11-27 12:53:47
阅读次数:
159
好久没更新了,最近在搞些linux方面的事情,powershell也就耽误了,更新个整理活动目录的脚本,供各位参考指正。需求:一、加域的计算机和人员要移动到对应分公司的OU(每个OU组策略有区别)二、删除密码过期超过一年的用户三、删除禁用账户关键字:move-adobject实现:windows..
分类:
其他好文 时间:
2014-11-27 12:53:18
阅读次数:
287
坏味道(smell)常用的重构手法(Common Refactoring)Alternative Classes with Different Interfaces, p85Rename Method (273), Move Method (142) Comments, p8...
分类:
其他好文 时间:
2014-11-26 06:35:03
阅读次数:
278