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
1. //取得结果集中行的数目示例:$count =
mysql_num_rows($result1);2. //小括号里odd代表奇数,even代表偶数 示例:tr:nth-child(odd){
background: #cad9ea; }3.//Mysql数据库li...
分类:
其他好文 时间:
2014-07-22 23:11:33
阅读次数:
423
题目: 如数: 1 1 2 3 5 8 13 21 34 55 ......序号: 0 1 2
3 4 5 6 7 89 ...... 由用户输入序号,输出对应的数值。效果:实现代码:#include int bian(int num);//static
int shu[100]={1,1};int...
分类:
其他好文 时间:
2014-07-22 23:10:13
阅读次数:
353
要注意的是我们的PHP是嵌入在html中的 首先在php中写入链接 $conn =
mysql_connect("localhost","root","") or die("链接数据库失败");
mysql_select_db("fg19");// 选择数...
分类:
Web程序 时间:
2014-07-22 23:07:55
阅读次数:
505
/** * Definition for binary tree * struct
TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) :
val(x), left(...
分类:
其他好文 时间:
2014-07-22 23:07:34
阅读次数:
312
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
这题就是 要你找出一个ASCII 的值x使得 :
x^e%n==num(当前输入的数,e条件已给出)zsd:1: ASCII0-255可以枚举2: =a^11 11=1011int pow2( int a,
int b ){ int r = 1, base = a; while( b...
分类:
其他好文 时间:
2014-05-01 16:22:43
阅读次数:
326
题意:给你一个大于4的整数m和一个真分数a/b,求最佳素数对p、q,使得a/b#includeusing namespace std; int main() {
int prime[2000],k; int num[10001]; int i,l; int ...
分类:
其他好文 时间:
2014-05-01 14:43:18
阅读次数:
325
组合数学、-排列组合数----sum求sum=sum*(m--)/i;int c(int
n,int m)//n下标,m上标{ int sum=1; for(int i=1;in-m) m=n-m; int temp=n; for(int
i=1;i1) { up[j]/=temp; d...
分类:
其他好文 时间:
2014-05-01 01:07:44
阅读次数:
409