05 2014 档案
摘要:/** 从一个字符串s的第i个字符(不包括此字符)开始删除n个字符"dadh5asdadd"**/#include <stdio.h>#include <string.h>void del(char *p,int i,int n){ int cnt; int j; for(cnt=0; ;cnt++
阅读全文
摘要:函数名: strcpy 功 能: 拷贝一个字符串到另一个 用 法: char *stpcpy(char *destin, char *source); 程序例: #include <stdio.h> #include <string.h> int main(void) { char string[1
阅读全文
摘要:#include<stdio.h> main(){ int fork_3; printf("Before:my pid is %d\n",getpid()); fork_3 = fork(); if(fork_3 1) perror("fork"); else if(fork_3 ==0) prin
阅读全文