error: 'for' loop initial declarations are only allowed in C99 mode
使用gcc编译代码是报出
error: 'for' loop initial declarations are only allowed in C99 mode
note: use option -std=c99 or -std=gnu99 to...
分类:
其他好文 时间:
2014-09-18 14:55:17
阅读次数:
241
Follow up for "Search in Rotated Sorted Array":What if duplicates are allowed?Would this affect the run-time complexity? How and why?Write a function ...
分类:
其他好文 时间:
2014-09-18 13:11:03
阅读次数:
135
安装完MySQL后,远程连接数据库的时候,出现 ERROR 1130 (HY000): Host '192.168.0.1' is not allowed to connect to this MySQL server提示信息,不能远程连接数据库。考虑可能是因为系统数据库mysql中user表中的host是localhost的原因,于是,我尝试把这个值改为自己服务器的ip,果然就好用了,不过用
...
分类:
数据库 时间:
2014-09-14 18:06:07
阅读次数:
319
oracle数据库:为了使ID自增,建了序列后,创建触发器:create or replace TRIGGER TRIG_INSERT_TRADE_RECODE BEFORE INSERT ON TRADE_RECODE FOR EACH ROW BEGIN :NEW.ID:=SEQ_TRADE_R...
分类:
其他好文 时间:
2014-09-11 16:51:32
阅读次数:
373
1 问题描述: 客户端与MySQL服务器端的链接断开了 2 问题出现原因: 1> MySQL服务宕了 2> MySQL链接超时 3>MySQL请求链接进程被主动kill : 查询的结果集超过了max_allowed_packet 3 解决方法: 方式一: 当然是增...
分类:
数据库 时间:
2014-09-11 11:26:42
阅读次数:
272
apache 2.4 好象不再支持以下指令。。。Order allow,denyAllow from all 用上面的指令访问页面时显示错误:client denied by server configuration改用Require all granted#Access is allowed un...
分类:
其他好文 时间:
2014-09-10 12:17:00
阅读次数:
179
Follow up for "Remove Duplicates":What if duplicates are allowed at mosttwice?For example,Given sorted array A =[1,1,1,2,2,3],Your function should ret...
分类:
其他好文 时间:
2014-09-09 12:23:58
阅读次数:
176
最近在学习osgi,在练习HttpService的过程中,一直出现“A null service reference is not allowed”这样的报错,代码本身没有问题,在网上也搜了不少地方,在《深入理解OSGi》、《osgi原理与最佳实践》这两本书中也没有找到具体的解决方法。万般无奈,只好...
分类:
其他好文 时间:
2014-09-05 18:01:01
阅读次数:
127
';' not allowed before 'ELSE' → ElSE前不允许有“;”'' clause not allowed in OLE automation section → 在OLE自动区段不允许“”子句'' is not a type identifier → 不是类型标识符'' n...
分类:
其他好文 时间:
2014-09-05 14:12:11
阅读次数:
264
大学的时候学过C++、C,最近工作也不是很忙,就想起看看C#中的指针,看看、回忆一下啊,指针的用法,一下学习笔记摘自msdn:指针类型
在不安全的上下文中,类型可以是指针类型以及值类型或引用类型。指针类型声明具有下列形式之一:
type* identifier;
void* identifier; //allowed but not recomm...
分类:
其他好文 时间:
2014-09-05 10:05:01
阅读次数:
290