#define _CRT_SECURE_NO_DEPRECATE /*取消scanf,printf不安全之类的错误提示*/#include #include typedef struct node{ int value; struct node* next;}listnode;listnode* ....
分类:
其他好文 时间:
2014-12-07 17:44:48
阅读次数:
160
一. 添加环境变量(Bash shell中用export,C shell中用setenv)1.直接在终端修改:export PATH=$PATH:software_installation_path/bin改修改只对本次进程有效2.修改用户级在home/用户/.profile中添加:export P...
分类:
系统相关 时间:
2014-12-07 17:44:23
阅读次数:
280
萌妹子都是这样子做自我介绍的 啦啦啦 CodeSnippet:#include
#include
#include void DrawPic();
void printSpace();
int main()
{ int i; int j=3; printf(" *** ***\n"); printf...
分类:
编程语言 时间:
2014-12-07 17:42:41
阅读次数:
1046
cut和awk可以提取列,grep提取行
命令名称:cut
-f 提取行,-d 分隔符...
分类:
系统相关 时间:
2014-12-07 16:30:02
阅读次数:
379
一、简介Bash(GNUBourne-AgainShell);是shell的一种;是一个命令语言解释器(command-languageinterpreter);可以兼容大多数其他shell的语言;其历史及详细介绍请点击:(https://en.wikipedia.org/wiki/Bash_%28Unix_shell%29#Brace_expansion)二、bash变量2.1变量命名法则(..
分类:
系统相关 时间:
2014-12-07 15:11:33
阅读次数:
380
shell脚本是什么呢?简单来说,它就是许多命令的一个集合;Shell脚本是一个面向过程的编程语言,它是通过解释器来解释运行脚本里的每一条命令;面向过程的编程语言的元素:变量、数组、流程、函数下面就来学习一下Shell脚本吧!一.变量变量:可以理解它为一个命名的内存空间,..
分类:
系统相关 时间:
2014-12-07 15:08:22
阅读次数:
444
安卓开发时,在windows 的cmd 命令中使用 adb 命令时,经常会碰到 下图的的情况
adb shell时出现以下信息:
* daemon not running. starting it now on port5037 *
解决方法:
输入下面的命令:netstat -ano | findstr"5037" 可以查询什么占用了5037端口,再通过 ...
分类:
其他好文 时间:
2014-12-07 13:51:02
阅读次数:
218
输出整型的数值就不说了,显示浮点型:printf("%.2f",3.33); //保留两位小数显示,数字前面没有空格填充显示的时候,设计到0-1之间的数的时候:printf("%.2f",0.33);printf("%.2f",.33);//以上两种情况显示的效果一致。自动补零而不是补空格:pri....
分类:
其他好文 时间:
2014-12-07 13:48:06
阅读次数:
146
1.
basename 是去除目录后剩下的名字
example:shell>temp=/home/temp/1.test
shell>base=`basename $temp`
shell>echo $base
结果为:1.test
2.
dirname 是取目录
example:shell>temp=/home/temp/1.test
...
分类:
系统相关 时间:
2014-12-07 12:37:19
阅读次数:
211