去网站下载mysql的yum源,地址如下:
http://repo.mysql.com/
在linux上先查看系统的版本号,根据版本号对应下载
more /etc/redhat-release
rpm -Uvh
http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
yum -y upgrade mysql
m...
分类:
数据库 时间:
2014-07-22 23:03:13
阅读次数:
472
Size widgetSize = Director::getInstance()->getWinSize();
Text* alert = Text::create("Layout", "fonts/Marker Felt.ttf", 30 );
alert->setColor(Color3B(159, 168, 176));
a...
分类:
其他好文 时间:
2014-05-01 21:53:45
阅读次数:
461
2dx中的相对布局和Android中的非常类似,如果之前做过Android应该非常容易上手。
Size widgetSize = Director::getInstance()->getWinSize();
Text* alert = Text::create("Layout", "fonts/Marker Felt.ttf", 30 );
...
分类:
其他好文 时间:
2014-05-01 18:33:56
阅读次数:
2383
相对某个控件进行布局
Size widgetSize = Director::getInstance()->getWinSize();
Text* alert = Text::create("Layout", "fonts/Marker Felt.ttf", 30 );
alert->setColor(Color3B(159, 168, 176)...
分类:
其他好文 时间:
2014-05-01 18:04:08
阅读次数:
503
题目:
Given a sorted (increasing order) array, write an algorithm to create a binary tree with minimal height.
翻译:
给定一个有序数组(递增),写程序构建一棵具有最小高度的二叉树。
思路:
要使二叉树的高度最小,则要尽量使其左右子树的节点数目相当,自然就考虑到将其构造成为二叉排序树,且将有序数组的中间大的数作为根节点,这样得到的二叉树的高度便是最小的。...
分类:
其他好文 时间:
2014-05-01 17:48:45
阅读次数:
321
.h
Text* _displayValueLabel;
void selectedEvent(Ref* pSender,CheckBoxEventType type);
.cpp init()函数
_touchGroup = Layer::create();
addChild(_touchGroup);
Size winSize = ...
分类:
其他好文 时间:
2014-05-01 17:18:48
阅读次数:
453
.h中添加
int _count;
Layout* layout;
void update(float delta);
layout = Layout::create();
layout->setSize(Size(widgetSize.width, widgetSize.height));...
分类:
其他好文 时间:
2014-04-30 22:28:39
阅读次数:
401
我采用Database First,用Sql很容易就可以做到对一个表进行压缩。如以下:
CREATE TABLE [dbo].[Entities](
[Id] [int] IDENTITY(1,1) NOT NULL,
[Name] [nvarchar](max) NULL,
Primary Key Clustered ([Id] ASC) WITH (DATA_...
分类:
数据库 时间:
2014-04-30 22:23:39
阅读次数:
436
1、
Text* alert = Text::create("Layout", "fonts/Marker Felt.ttf", 30 );
alert->setColor(Color3B(159, 168, 176));
alert->setPosition(Point(widgetSize.width / 2.0f,...
分类:
其他好文 时间:
2014-04-30 22:23:38
阅读次数:
421