rlwrap工具可以解决linux下sqlplus提供浏览历史命令行的功能,和删除先前输入错误的字母等问题1.安装需要readline包
这个安装光盘就有[root@asm RedHat]# cd RPMS/[root@asm RPMS]# rpm -Uvh readline*warning:
re...
分类:
数据库 时间:
2014-07-22 23:12:57
阅读次数:
649
auto:推导类型变量:编译器选项指示编译器如何使用auto
关键字来声明变量。如果指定默认选项/Zc:auto,编译器从其初始化表达式中推导声明的变量的类型。如果指定/Zc:auto-,编译器将该变量分配给自动存储类。使用示例:auto
root = new TreeNode(*pre_first...
分类:
编程语言 时间:
2014-07-22 23:12:12
阅读次数:
531
要注意的是我们的PHP是嵌入在html中的 首先在php中写入链接 $conn =
mysql_connect("localhost","root","") or die("链接数据库失败");
mysql_select_db("fg19");// 选择数...
分类:
Web程序 时间:
2014-07-22 23:07:55
阅读次数:
505
Given a binary tree, find its maximum depth.The
maximum depth is the number of nodes along the longest path from the root node
down to the farthest le...
分类:
其他好文 时间:
2014-07-22 23:07:13
阅读次数:
379
org.openqa.selenium.firefox.NotConnectedException:
Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console
output:*** LOG add...
分类:
其他好文 时间:
2014-05-01 15:00:46
阅读次数:
292
Windows没有message
queue累世的IPC内核对象,使得在在处理IPC时少了一种传递消息的手段。利用Windows的Naming
Object可以实现一套简单的Inter-Thread消息队列。这里并不使用socket,因为一旦使用socket,就得负责port管理,很麻烦,另外在对外...
分类:
编程语言 时间:
2014-05-01 02:30:44
阅读次数:
555
Environment Variable :change(import)
/etc/bashrc export JAVA_HOME=/software/jdk1.8.0 export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/li...
分类:
其他好文 时间:
2014-04-30 23:18:44
阅读次数:
386
1.安装 mysql ,安装过程中将提示设置 root 用户的密码,默认可以设置为 rootadmin
。$ sudo apt-get install mysql-server2.安装 mysql 开发工具(不安装时,安装 MySQL-python
提示错误"mysql_config not fou...
分类:
数据库 时间:
2014-04-30 23:00:18
阅读次数:
625
伸展树模版真的好长好长。。。
cut a b c:把第a-1个数伸展到根节点,把第b+1个数伸展到a的右子树,然后把ch[ch[root][1][0]]拿掉,放在剩下的树的第c个节点下。
flip a b:把第a-1个数伸展到根节点,把第b+1个数伸展到a的右子树,然后翻转ch[ch[root][1][0]];
由于会出现操作两边的情况,所以加了两个-1节点。
注意:
1,输出的时候要注...
分类:
其他好文 时间:
2014-04-27 22:31:19
阅读次数:
295