上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 90 下一页
摘要: 函数原型: #include <unistd.h> int symlink(const char * oldpath, const char * newpath); 函数说明: symlink()以参数newpath 指定的名称来建立一个新的连接(符号连接)到参数oldpath 所指定的已存在文件. 阅读全文
posted @ 2019-11-11 14:34 王清河 阅读(1713) 评论(0) 推荐(0)
摘要: 函数原型; #include<unistd.h> ssize_t readlink(const char *path, char *buf, size_t bufsiz); 函数说明: readlink()会将参数path的符号链接内容存储到参数buf所指的内存空间,返回的内容不是以\000作字符串 阅读全文
posted @ 2019-11-11 14:21 王清河 阅读(14797) 评论(2) 推荐(1)
摘要: 函数原型: include<stdlib.h> char *getenv(char *envvar); 函数说明: getenv()用来取得参数envvar环境变量的内容。参数envvar为环境变量的名称,如果该变量存在则会返回指向该内容的指针。环境变量的格式为envvar=value。getenv 阅读全文
posted @ 2019-11-11 14:17 王清河 阅读(572) 评论(0) 推荐(0)
摘要: 按照字符读取和写入 #include<stdio.h> #include<string.h> #include<stdlib.h> int fputc_func(char *filename) { int i = 0; FILE *fp = NULL; char buf[64] = "this is 阅读全文
posted @ 2019-11-10 21:39 王清河 阅读(1147) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<stdlib.h> #include<string.h> typedef struct Teacher { char name[64]; int age; char *pname2; }teacher; /* 编译器的=号操作会把指针变量的值,从 阅读全文
posted @ 2019-11-09 20:50 王清河 阅读(251) 评论(0) 推荐(0)
摘要: /*** point_practice.c ***/ #include<stdio.h> #include<string.h> #include<stdlib.h> int sort( char **myp1 /*in*/, int num1, char (*myp2)[30], int num2, 阅读全文
posted @ 2019-11-09 20:48 王清河 阅读(209) 评论(0) 推荐(0)
摘要: Given the relations of all the activities of a project, you are supposed to find the earliest completion time of the project. Input Specification: Eac 阅读全文
posted @ 2019-11-09 20:46 王清河 阅读(267) 评论(0) 推荐(0)
摘要: 假定一个工程项目由一组子任务构成,子任务之间有的可以并行执行,有的必须在完成了其它一些子任务后才能执行。“任务调度”包括一组子任务、以及每个子任务可以执行所依赖的子任务集。 比如完成一个专业的所有课程学习和毕业设计可以看成一个本科生要完成的一项工程,各门课程可以看成是子任务。有些课程可以同时开设,比 阅读全文
posted @ 2019-11-09 20:44 王清河 阅读(314) 评论(0) 推荐(0)
摘要: 现有村落间道路的统计数据表中,列出了有可能建设成标准公路的若干条道路的成本,求使每个村落都有公路连通所需要的最低成本。 输入格式: 输入数据包括城镇数目正整数N(≤1000)和候选道路数目M(≤3N);随后的M行对应M条道路,每行给出3个正整数,分别是该条道路直接连通的两个城镇的编号以及该道路改建的 阅读全文
posted @ 2019-11-09 20:31 王清河 阅读(415) 评论(0) 推荐(0)
摘要: index函数 函数定义: #include<strings.h> char *index(const char *s, int c); 函数说明: 找出参数s字符串中第一个出现参数c的地址,然后将该字符串出现的地址返回。字符串结束字符(NULL)也视为字符串的一部分。 返回值: 如果找到指定的字符 阅读全文
posted @ 2019-11-08 17:04 王清河 阅读(991) 评论(0) 推荐(0)
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 90 下一页