#define stack_init_size 100
#define stackincrement 10
typedef int ElemType;
typedef int status;
const status error=0;
const status ok=1;
const status overflow=-2;
const int MAXSIZE = 100;
typedef st...
分类:
其他好文 时间:
2014-05-26 06:17:29
阅读次数:
243
which gem
在这篇文章里,我们将学到
1. 怎么用Rails来生成我们的第一个app。
2. 学会怎么使用Git进行版本控制。
3.怎么将程序部署至Heroku,Rails服务提供商。
Ruby on Rails是一个最流行、最强大的构建动态网站的一个框架。有很多知名的企业使用Rails,例如:
37signal、Github、Shopify、Scribd、Twitter、Di...
分类:
其他好文 时间:
2014-05-26 05:37:07
阅读次数:
389
CentOS命令登录MySQL时,报错ERROR 1045 (28000): Access
denied for user root@localhost (using password: NO)错误解决方法1、停用mysql服务:#
/etc/rc.d/init.d/mysqld stop2、输入命...
分类:
数据库 时间:
2014-05-26 01:58:12
阅读次数:
306
我们经常会用到平年和闰年对应的天数,直接对数组静态初始化固然可以,但是手写起来很容易写错,所以用个函数得对应天数。
完整代码:
#include
using namespace std;
int count = 0;
int a[2][12];
void init_arr(int a[2][12])
{
for(int i=0;i<13;i++)
{
if(i==1||i==3||i=...
分类:
其他好文 时间:
2014-05-25 18:16:39
阅读次数:
258
自定义iTerm2标题栏和bash显示当前git branch信息...
分类:
其他好文 时间:
2014-05-25 11:02:32
阅读次数:
546
ST
int dp[maxn][20];
int a[maxn];
void RMQ_init(int n)
{
int i,j,k;
for(i = 1; i <= n; i++)
dp[i][0] = a[i];
k = (int) (log((double)n + 0.2) / log(2.0));
for(j = 1; j <= k; j++)
for(i =...
分类:
其他好文 时间:
2014-05-25 09:45:08
阅读次数:
227
V3 RC4 版本图片
显示一个飞船
将Chapter1中 SpaceCargoShip.png 文件 添加到项目里面。
代码在 init :
CCSprite *spaceCargoShip = [CCSprite spriteWithImageNamed:@"SpaceCargoShip.png"]; [spaceCargoShip set...
分类:
其他好文 时间:
2014-05-25 09:39:59
阅读次数:
195
一、开发环境
Win8.1 64位、VS2013、MySQL5.5.37
64位
MySQL安装目录为:C:\Program Files\MySQL\MySQL Server 5.5
二、配置工程环境
首先创建一个控制台空项目,打开VS2013,文件--> 新建项目 --> 常规 --> 选择“空项目”
因为我们要使用MySQL数据库...
分类:
数据库 时间:
2014-05-25 04:45:09
阅读次数:
442
关于git stash命令的使用方法网上一大把,我想记录的是我在使用过程中觉得实用及好用的:
当在一个分支的开发工作未完成,却又要切换到另外一个分支进行开发的时候,除了commit原分支的代码改动的方法外,我觉得git stash是一个更加便捷的选择。
步骤如下:
一、添加改动到stash。在原分支 git stash save -a "messeag",网上很多很多资料都没有加 -a 这个...
分类:
其他好文 时间:
2014-05-25 04:33:50
阅读次数:
242
上次的博文Git实战(一)版本号控制概述中我们简介了一下版本号控制系统的概念,重点对版本号控制的三种类型进行了分析和对照,从本篇博文開始我们进入Git的世界,首先介绍一下Git实现版本号控制的原理。
Git与SVN等其它版本号控制系统的最重要的一点差别在于,Git仅仅关心文件数据的总体是...
分类:
其他好文 时间:
2014-05-25 02:07:15
阅读次数:
274