Fork me on GitHub
摘要: 1.alias cls='clear'2.进程与进程间通信:管道、共享内存、信号 阅读全文
posted @ 2016-07-28 22:07 千秋此意 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 11 int func1(int a,int b) 12 { 13 return a+b; 14 } 15 16 void catch_Signal(int S... 阅读全文
posted @ 2016-07-28 22:02 千秋此意 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 8 #include 9 #include 10 11 int main(int arg ,char *args[]) 12 { 13 14 /* 创建共享文件 15 * int shmid = shmget(IPC_... 阅读全文
posted @ 2016-07-28 13:54 千秋此意 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include<unistd.h> 4 #include<string.h> 5 #include<sys/types.h> 6 #include<sys/wait.h> 7 #include<sys/sta 阅读全文
posted @ 2016-07-28 10:05 千秋此意 阅读(550) 评论(0) 推荐(0) 编辑
摘要: 添加或追加系统变量: 1.变量名:JAVA_HOME 变量值:JDK的安装路径 2.变量名:PATH 变量值:“%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;”或者是直接“%JAVA_HOME%\bin;” 3.变量名:CLASSPATH 变量值:“.;%JAVA_HOME 阅读全文
posted @ 2016-07-27 10:10 千秋此意 阅读(401) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/wdzxl198/article/details/9102759 http://blog.sina.com.cn/s/blog_a8b2435901013nw3.html 阅读全文
posted @ 2016-07-25 14:58 千秋此意 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 8 int main(void) 9 { 10 pid_t pid = fork(); 11 int status; 12 if(pid== -1) 13 { 14 printf("... 阅读全文
posted @ 2016-07-21 17:09 千秋此意 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 11 void writelog(const char* log) 12 { 13 time_t tDate; 14 struct tm* eventTime... 阅读全文
posted @ 2016-07-20 19:15 千秋此意 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 1 int main(int arg, char *args[]) 2 { 3 4 // char s[]="abc.txt"; 5 FILE* p=fopen(args[1],"r+"); 6 if(p==NULL) 7 printf("error is %s\n",strerror(errno)); 8 else 9 ... 阅读全文
posted @ 2016-07-20 17:21 千秋此意 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 输入字符不在屏幕上显示 阅读全文
posted @ 2016-07-20 16:31 千秋此意 阅读(218) 评论(0) 推荐(0) 编辑