1.元组类型let cat =(age:4,weight:2,cocle:"black",beauty :true)if(cat.beauty){ printf("我就不告诉你我的小猫有 \(cat.age)岁,体重\(cat.weight)斤");}else{ printf("过来让我砍死 ...
分类:
编程语言 时间:
2014-11-01 13:21:46
阅读次数:
178
??http报错之return error code:401 unauthorized依据HTTP返回码所表示的意思应该是未授权,没有输入账号和password,因此解决方法就直接在HTTP包里面携带password。先利用shell产生user and password 的base64编码将账号为...
分类:
Web程序 时间:
2014-11-01 13:19:57
阅读次数:
198
adb remount 失败:remount failed: Operation not permitted
关于ADB的使用,这里再说明下:常用命令
adb shell - 登录设备shell,后面也可直接跟运行命令。如:adb shell rm -r /system/sd/app
adb pull - 从手机中下载文件到电脑上。如:adb pull /data/app_s...
分类:
数据库 时间:
2014-11-01 12:00:16
阅读次数:
233
linux中shell是一个特殊的应用程序。它介于系统的内核与用户之间。充当命令“解释器”的作用角色。负责接收用户输入的操作指令,并进行解释。将需要执行的操作传递给内核。并输出执行结果;下面我们来看一下当前系统所支持的shell的种类:其中/bin/shell是目前大多数linux中采..
分类:
系统相关 时间:
2014-11-01 12:00:14
阅读次数:
244
ctrl+u可以在shell下删除行,如果此键不起作用,就试试ctrl+xctrl+z可以将程序挂起,不会终止程序,但可以将程序挂起。通过fg命令可再把此作业切换到前台cp命令的目标文件如果是一个已经存在的文件,那么此命令就会把原来的文件覆盖,所以最好把cp命令起别名为:alias cp="cp -...
分类:
系统相关 时间:
2014-11-01 11:34:22
阅读次数:
193
试试先#include<stdio.h>
intmain(void)
{
printf("Hello\n");
return0;
}感觉还不错#include<stdio.h>intmain(void)
{
printf("Hello\n");
return0;
}
分类:
其他好文 时间:
2014-11-01 06:24:17
阅读次数:
183
loginshell与nologinshell的区别loginshell是输入用户名及密码登录后的shell,其读取的配置文件的顺序为/etc/profile(1./etc/inputrc2./etc/profile.d/*.sh3/etc/sysconfig/i18n)--->~/.bash_profile(1.~/.bashrc2./etc/bashrc)nologinshell会读取的配置文件的顺序~/.bashrc..
分类:
其他好文 时间:
2014-11-01 06:22:59
阅读次数:
168
ubuntu shell :
下载 ImageZero yuan...
分类:
其他好文 时间:
2014-10-31 23:45:05
阅读次数:
394
这是一个模拟shell端的程序。使用了execvp,fork,wait,malloc,realloc以及strtok()函数。smsh.h1 char* next_cmd();2 char** splitline(char* );3 void freelist(char **);4 int exec...
分类:
系统相关 时间:
2014-10-31 23:31:23
阅读次数:
304
关于shell中的for循环用法很多,一直想总结一下,今天网上看到上一篇关于for循环用法的总结,感觉很全面,所以就转过来研究研究,嘿嘿...1、 for((i=1;i<=10;i++));do echo $(expr $i \* 4);done2、在shell中常用的是 for i in $(se...
分类:
其他好文 时间:
2014-10-31 20:36:00
阅读次数:
140