可能是“头晕”了,我在编码中随意写出了如下代码:CCLabelTTF*lbl=CCLabelTTF::create("Hi,youhavesucceededinbuyingthisPower-up!","Arial",32);
lbl->setColor(ccc3(255,0,0));
lbl->setPosition(VisibleRect::center());
ul2->addChild(lbl,99);
CCActionInterval..
分类:
其他好文 时间:
2014-08-19 19:18:35
阅读次数:
205
1.ifconfigifconfig主要是能手动启动、观察和修改网络接口的相关参数,能修改的参数非常多,包括IP参数及MTU等都能修改,他的语法如下:[root@linux~]#ifconfig{interface}{up|down}一般来说,直接输入ifconfig就会列出目前已被启动的卡,不论这个卡是否有设置IP,都会被显示出..
分类:
系统相关 时间:
2014-08-19 16:53:05
阅读次数:
219
我们维护两个指针, 它们之间的距离为n。然后,我将这两个指针同步地在这个单链表上移动,保持它们的距离 为n不变。那么,
当第二个指针指到空时,第一个指针即为所求。
#include
struct Node
{
int data;
Node* next;
};
void initList(Node* vNode)
{
for (int i=0; i < 20; ++i)
{...
分类:
其他好文 时间:
2014-08-19 01:00:33
阅读次数:
257
这里先暂时记录下代码流程,有待完善。
static int
construct(struct ofproto *ofproto_)
{
struct ofproto_dpif *ofproto = ofproto_dpif_cast(ofproto_);
const char *name = ofproto->up.name;
int max_ports;
...
分类:
其他好文 时间:
2014-08-18 22:08:43
阅读次数:
418
bnu 12639 Cards
dp求期望
区分 全局最优选择 和 当前最优选择。
本题是当前最优选择。
状态表示:
double dp[16][16][16][16][5][5];
bool vis[16][16][16][16][5][5];
状态下参数:
vector up, vector tmp。
so,记忆化搜索 + 回溯
//#pragma warning ...
分类:
其他好文 时间:
2014-08-18 20:33:42
阅读次数:
421
缩写原意: Overflow of = OV NV [No Overflow] Direction df = DN (decrement) UP (increment) Interrupt if = EI (enabled) DI (disabled) Sign sf = NG (negative)...
分类:
编程语言 时间:
2014-08-18 18:06:32
阅读次数:
417
基本框架:a) Vi的三种工作模式b) 编辑模式c) 插入模式d) 命令模式1、 Vi的三种工作模式 2、 编辑模式:不能所见即所得l 光标定位k 上移;j 下移;h 左移;l 右移。ctrl+f 在文件中前移一页(相当于page down)。ctrl+b 在文件中后移一页(相当于page up)....
分类:
其他好文 时间:
2014-08-18 15:59:32
阅读次数:
219
1、将图片方向旋转为up方向-(UIImage *)rotateImage:(UIImage *)aImage{ CGImageRef imgRef = aImage.CGImage; CGFloat width = CGImageGetWidth(imgRef); CGF...
分类:
其他好文 时间:
2014-08-18 14:27:52
阅读次数:
144
Problem C CALCULATOR CONUNDRUMAlice got a hold of an old calculator that can display n digits. She was bored enough to come up with the following time...
分类:
其他好文 时间:
2014-08-18 12:07:54
阅读次数:
269
Follow up for N-Queens problem.
Now, instead outputting board configurations, return the total number of distinct solutions.
public class Solution {
public int totalNQueens(int n) {
...
分类:
其他好文 时间:
2014-08-18 10:49:54
阅读次数:
206