2010年10月4日

摘要: #include<stdio.h>#include<stdlib.h>#include<malloc.h>#define PROCESS_NAME_LEN 32 /*进程名长度*/#define MIN_SLICE 10 /*最小碎片的大小*/#define DEFAULT_MEM_SIZE 1024 /*内存大小*/#define DEFAULT_MEM_ST... 阅读全文
posted @ 2010-10-04 12:44 生活费 阅读(605) 评论(0) 推荐(0) 编辑
摘要: shell允许将一组命令集或语句形成一个可用块,这些块成为shell函数。shell函数根一般的函数一样,也有2部分组成:函数名、函数体,函数名应该是唯一的:如#!/bin/shhello(){ echo "hello world"}hello #调用函数helloshell输入输出1、echo(输 阅读全文
posted @ 2010-10-04 11:22 生活费 阅读(1759) 评论(0) 推荐(0) 编辑

导航