尾指针 *real(head->next=dead)1初始化void ds_init( node **pNode){int item;node *temp,*target;printf("输入终点的值,输入0完成出初始化\n");while(1){ scanf("%d",&item); fflus....
分类:
其他好文 时间:
2014-12-03 18:30:57
阅读次数:
179
ctime分函数和类两种用途。ctime功能是 把日期和时间转换为字符串,
例如:
#include
#include
int main()
{
time_t t;
t = time(&t);
printf("Today's dateandtime:%s\n", ctime(&t));
return 0;
}
打印出来的是今天的日期
如果...
分类:
其他好文 时间:
2014-12-03 17:16:21
阅读次数:
189
1、通过ADB shell命令
下面为安卓4.4版本的adb shell命令
pm get-install-location: returns the current install location.
0 [auto]: Let system decide the best location
1 [internal]: Install on internal dev...
分类:
移动开发 时间:
2014-12-03 17:11:56
阅读次数:
185
这个脚本 程序my_name演示了函数的参数是如何传递的,以及函数如何返回一个true或false值。使用一个参数来调用该脚本程序,该参数是想要在问题中使用的名字。
shell脚本代码
#!/bin/sh
yes_or_no() {
echo "Is your name $* ?"
while true
do
echo -n "Enter yes or no: "...
分类:
系统相关 时间:
2014-12-03 15:50:04
阅读次数:
195
转自http://www.cnblogs.com/wangyonghui/archive/2010/07/12/1776068.html,稍有改动
一、是什么
我们学习C语言时最经常使用printf()函数,但我们很少了解其原型。其实pri...
分类:
编程语言 时间:
2014-12-03 15:46:49
阅读次数:
282
define all-cpp-files-under$(patsubst ./%,%, \ $(shell cd $(LOCAL_PATH) ; \ find $(1) -name "*.cpp" -and -not -name ".*" -and -not -name "CCE...
分类:
其他好文 时间:
2014-12-03 15:39:08
阅读次数:
240
复制一下代码到记事本中并另保存为autoTelnet.bat,之后双击运行就实现自动登录到telnet服务器了,服务器IP自己修改@echooffechosetsh=WScript.CreateObject("WScript.Shell")>telnet_tmp.vbsechosh.SendKeys"open192.168.210.91">>telnet_tmp.vbsechoWScript.Sleep10..
/****fork_test.c *****/
#include
#include
#include
main()
{
pid_t pid; /*此时仅有一个进程*/
int n=4;
pid=fork(); /*此时已经有两个进程在同时运行*/
if(pid<0)
printf("error in fork!\n");
else if(pid==0) /...
分类:
系统相关 时间:
2014-12-03 14:18:38
阅读次数:
259
有时候我们写的app要用uid=0的方式启动一个process,framework层和app层是做不到的,只有通过写脚本,利用am来实现。下面是具体步骤:1.创建一个包含Main()方法Java project1.1.创建一个Java project1.2.添加Main()方法1.3.导出为jar包...
分类:
移动开发 时间:
2014-12-03 14:05:22
阅读次数:
213
http://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-common/FileSystemShell.html#Overview FS Shell 调用文件系统(FS)Shell命令应使用?bin/hadoop fs <args>的形式。 所有的的FS shell命令使用U...
分类:
系统相关 时间:
2014-12-03 12:42:19
阅读次数:
344