02 2024 档案

多线程文件拷贝
摘要:多线程文件拷贝 #include <stdio.h> #include <pthread.h> #include <unistd.h> #include <stdlib.h> #include <assert.h> #include <sys/mman.h> #include <sys/types. 阅读全文

posted @ 2024-02-29 21:51 wessf 阅读(27) 评论(0) 推荐(0)

线程
摘要:/1.创建一个子线程,子线程执行循环输出10次”hello,world”, 主线程循环100次输出”123456”,如此循环 50 次,试写出代码。/ #include <stdio.h> #include <pthread.h> #include <unistd.h> #include <stdl 阅读全文

posted @ 2024-02-28 22:01 wessf 阅读(28) 评论(0) 推荐(0)

消息队列
摘要:https://files.cnblogs.com/files/blogs/793080/ftok.zip?t=1709037600&download=true 阅读全文

posted @ 2024-02-27 22:02 wessf 阅读(27) 评论(0) 推荐(0)

多进程拷贝数据文件
摘要:多进程拷贝数据 #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <sys/mman.h> #include <sys/wait.h> #include <unistd.h> #include <stdi 阅读全文

posted @ 2024-02-26 21:40 wessf 阅读(23) 评论(0) 推荐(0)

mplayer播放
摘要:https://files.cnblogs.com/files/blogs/793080/mplayer.zip?t=1708694621&download=true 阅读全文

posted @ 2024-02-23 21:24 wessf 阅读(21) 评论(0) 推荐(0)

父子进程
摘要:父子进程 #include <sys/types.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <sys/wait.h> int main(void) { int i=0,j=0,k=0,n=0;; pi 阅读全文

posted @ 2024-02-22 20:30 wessf 阅读(25) 评论(0) 推荐(0)

递归调用
摘要:遍历目录和子目录 #include <sys/types.h> #include <dirent.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> void DIRENT(char *p 阅读全文

posted @ 2024-02-20 21:31 wessf 阅读(26) 评论(0) 推荐(0)

学生管理系统
摘要:https://files.cnblogs.com/files/blogs/793080/0219.zip?t=1708343996&download=true 阅读全文

posted @ 2024-02-19 20:02 wessf 阅读(19) 评论(0) 推荐(0)

请编写函数fun,它的功能是:求出1到100之内能被7或者11整除, 但不能同时被7和11整除的所有整数,并将他们放在a所指的数组中, 通过n返回这些数的个数
摘要:/2.请编写函数fun,它的功能是:求出1到100之内能被7或者11整除, 但不能同时被7和11整除的所有整数,并将他们放在a所指的数组中, 通过n返回这些数的个数/ #include <stdio.h> #include <string.h> int fun(int *buf) { int i=1 阅读全文

posted @ 2024-02-18 17:01 wessf 阅读(123) 评论(0) 推荐(0)

1.m个人的成绩存放在score数组中,请编写函数fun, 它的功能是:将低于平均分的人数作为函数值返回, 将低于平均分的分数放在below所指定的数组中。
摘要:/1.m个人的成绩存放在score数组中,请编写函数fun, 它的功能是:将低于平均分的人数作为函数值返回, 将低于平均分的分数放在below所指1定的数组中。/ #include <stdio.h> #include <string.h> int fun(int *buf, int *buff, 阅读全文

posted @ 2024-02-18 16:43 wessf 阅读(163) 评论(0) 推荐(0)