使用!来调用过往命令!!重复执行上一条指令!a重复执行上一条以a为首的指令!nubmer重复执行上一条在history表中记录号码为number的指令!-number重复执行前第number条指令ailasabc=‘cdxxxxxxxxxxx/xxxxxxxx/xxxxxxxxxxxxx‘unaliasabc""将一串字符当成字符串来看,可以转译特殊字..
分类:
系统相关 时间:
2014-07-24 23:58:14
阅读次数:
515
有如下文本:{"result":"success","data":[{"ip":"60.18.151.27"},{"ip":"175.22.2.148"},{"ip":"221.204.202.40"},{"ip":"113.107.250.17"},{"ip":"119.97.146.13"},{"ip":"113.56.106.20"},{"ip":"218.60.5.144"},{"ip":"218.58.225.40"},{"ip":"125.76.234.31"},{"ip":"119...
分类:
其他好文 时间:
2014-07-24 23:51:24
阅读次数:
1541
题目:用户给定一个维度,打印出指定的一个矩阵,例如用户给定10,输出应该如下图所示:
程序如下:
#include
#include
int main()
{
int dimension;
int *p;
int startx, starty, endx, endy;
int i, j, value = 0;
printf("Please input dimension...
分类:
其他好文 时间:
2014-07-24 23:40:23
阅读次数:
287
Encoding
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 26063 Accepted Submission(s): 11467
Problem Description
Given a string co...
分类:
其他好文 时间:
2014-07-24 23:36:33
阅读次数:
216
递归的边界条件写的多了……没必要写呢么多的。。
不明白可共同探讨~
#include
#include
#include
using namespace std;
long long dp(int kk,int pos)
{
int n=kk;int temp=(int)pow(2,n);
// printf("%d %d\n",kk,pos);
if(kk==0&&...
分类:
其他好文 时间:
2014-07-24 23:17:03
阅读次数:
368
#include
main()
{
int x=1,y=2,z=3;
if(x>y)
if(y<z)
printf("%d",++z);
else
printf("%d",++y);
printf("%d",x++);
}...
分类:
其他好文 时间:
2014-07-24 23:13:23
阅读次数:
179
# include
# include
# include
using namespace std;
struct node
{
int t;
int v;
int yy;
};
struct node a[100010],b[100010];
bool cmp(node a1,node a2)
{
if(a1.t==a2.t)//先按时间从大到小
return a1.v>a2....
分类:
其他好文 时间:
2014-07-24 23:10:33
阅读次数:
238
#include
main()
{
int x=1,y=0,a=0,b=0;
switch(x)
{
case 1:
switch(y)
{
case 0:a++;break;
case 1:b++;break;
}
case 2:a++;b++;break;
case 3:a++;b++;
}
printf("%d,%d\n",a,b);
}...
分类:
其他好文 时间:
2014-07-24 23:06:53
阅读次数:
217
#include
main()
{
int a=-1,b=1;
if((++a<0)&&(b--<=0))
printf("%d,%d\n",a,b);
else
printf("%d,%d\n",b,a);
}...
分类:
其他好文 时间:
2014-07-24 23:04:03
阅读次数:
155
http报错之return error code:401 unauthorized
根据HTTP返回码所表示的意思应该是未授权,没有输入账号和密码,因此解决方法就直接在HTTP包里面携带密码。
先利用shell产生user and password 的base64编码
将账号为admin,密码为admin的信息经base64编码为YWRtaW46YWRtaW4=。
$ ec...
分类:
其他好文 时间:
2014-07-24 23:03:23
阅读次数:
178