#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
#include
#include
#include
using namespace std;
const int m=(int)1E8;
string s1,s2;
int f[2][5001]={0},g[2][5001]={0};
void init();
void work();
int my_max(int,int);
int main()
{
freopen("lcs.in","r"...
分类:
其他好文 时间:
2014-05-26 04:07:17
阅读次数:
305
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
参考文章:http://blog.csdn.net/qyee16/article/details/6764753笔记本蓝屏,造成VMware非法关闭,开机重启VMware后,发现无法打开虚拟机了,报错如下:点击确定后,出现Internal
Error错误:解决办法很简单,打开任务管理器 --> 进程...
分类:
其他好文 时间:
2014-05-25 23:41:23
阅读次数:
411
我们经常会用到平年和闰年对应的天数,直接对数组静态初始化固然可以,但是手写起来很容易写错,所以用个函数得对应天数。
完整代码:
#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
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
一、开发环境
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
1.//下面写一下关于AFNetworking2.0的GET数据请求问题,刚开始的时候没有写下面标红的代码,所以导致有一个问题,错误显示如下:
Error: Error Domain=AFNetworkingErrorDomain Code=-1016 "Request failed: unacceptable content-type: text/html" UserInfo=0x913a...
分类:
Web程序 时间:
2014-05-24 23:45:53
阅读次数:
365
线程属性
初始化与销毁属性
int pthread_attr_init(pthread_attr_t *attr);
int pthread_attr_destroy(pthread_attr_t *attr);
获取与设置分离属性
int pthread_attr_getdetachstate(const pthread_attr_t *attr, int *detachsta...
分类:
编程语言 时间:
2014-05-24 21:49:29
阅读次数:
361
Quick Referenceinsmodmodprobermmod User-space
utilities that load modules into the running kernels and remove them.#include
module_init(init_function)...
分类:
其他好文 时间:
2014-05-24 12:05:39
阅读次数:
286