初始化: std::pair p; //initialize p.first and p.second with zero std::pair p(42, "hello"); make_pair(42, "hello"); // no need for the var name, it's r...
分类:
其他好文 时间:
2014-07-22 22:47:13
阅读次数:
209
Vigenère 密码 这个名字实在打不来... 题解:模拟 1 #include 2 #include 3 4 const int MAXL = 1000+10; 5 6 bool cj; 7 int cl, kl; 8 char c[MAXL], k[MAXL], an; 9 10 ...
分类:
其他好文 时间:
2014-07-22 22:43:15
阅读次数:
309
问题的发现过程: 安装了最新的centos版本后发现居然打不开emacs,然后在终端中输入emacs后还是不能打开,出现了下面的提示: emacs: error while loading shared libraries: libotf.so.0: cannot open shared objec...
分类:
其他好文 时间:
2014-07-22 22:40:13
阅读次数:
190
Failed to load libGL.soerror libGL.so: cannot open shared object file: No such file or directory启动emulator的时候有如上错误,解决方案:64-bit Ubuntu 12.04.$ sudo apt...
分类:
其他好文 时间:
2014-07-22 22:36:35
阅读次数:
223
在工作中发现,远程windowsserver2003SP2出现如题错误。搜索了下,可以通过更改几个注册表值解决:错误截图问题解决方法:1)AddDWORDkeyIgnoreRegUserConfigErrorsinHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TerminalServerwithvalue12)Modifythevalueofkey"Enabl..
分类:
数据库 时间:
2014-07-22 18:30:42
阅读次数:
317
tomcat启动报错:Cannotassignrequestedaddress:jvm_bind经查端口并未被占用,发现最后原因是hosts文件改过,加了一行<ip>localhost,导致启动时绑定不存在的ip失败了,把这行去掉就可以了。
分类:
其他好文 时间:
2014-07-22 18:23:52
阅读次数:
225
今天打开开发网站突然不能使用,发现时Mysql数据库down掉了,就去重启:
mysql.server restart
一直会报错:“Manager of pid-file quit without updating file”。
然后就去找原因,网上说有以下三个方面的问题:
1、硬盘不够用了,无法写入pid文件
2、进程卡死了,找到mysql进程kill掉,然后重启
3、目录权限...
分类:
数据库 时间:
2014-07-22 17:53:52
阅读次数:
274
从网上下的jm18.4解压后不能调试,窗口提示 Cannot open annex B ........ 注意要加上命令参数 ,改下工作目录。 改后通过
分类:
其他好文 时间:
2014-07-22 00:15:33
阅读次数:
189
package sortAlgorithm;import java.io.File;import java.io.IOException;import java.sql.Time;import java.util.Random; * @author sky * 该类给出各种排序算法public cl...
分类:
编程语言 时间:
2014-07-22 00:08:35
阅读次数:
344
[oracle@jp ogg]$ ./ggsci
./ggsci: error while loading shared libraries: /u01/app/oracle/ogg/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
关闭selinux,首先修改参数
[root@jp ...
分类:
数据库 时间:
2014-07-21 23:27:50
阅读次数:
294