[置顶] c语言环境配置

摘要: 1.先从百度搜索Windows下MinGW-w64的安装 2.在从链接https://pan.baidu.com/s/1aMyeF4iUl0Bfn-P8ILGliQ 3.在此电脑属性打开高级系统设置 4.打开环境变量,再编辑用户变量中的Pith 5.新建浏览自己文件mingw64中的bin文件 一直 阅读全文
posted @ 2023-05-12 20:50 wessf 阅读(160) 评论(0) 推荐(0) 编辑

多线程文件拷贝

摘要: 多线程文件拷贝 #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 阅读(3) 评论(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 阅读(2) 评论(0) 推荐(0) 编辑

消息队列

摘要: https://files.cnblogs.com/files/blogs/793080/ftok.zip?t=1709037600&download=true 阅读全文
posted @ 2024-02-27 22:03 wessf 阅读(1) 评论(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:41 wessf 阅读(1) 评论(0) 推荐(0) 编辑

mplayer播放

摘要: https://files.cnblogs.com/files/blogs/793080/mplayer.zip?t=1708694621&download=true 阅读全文
posted @ 2024-02-23 21:25 wessf 阅读(3) 评论(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:31 wessf 阅读(6) 评论(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:32 wessf 阅读(2) 评论(0) 推荐(0) 编辑

学生管理系统

摘要: https://files.cnblogs.com/files/blogs/793080/0219.zip?t=1708343996&download=true 阅读全文
posted @ 2024-02-19 20:02 wessf 阅读(3) 评论(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:02 wessf 阅读(15) 评论(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:44 wessf 阅读(36) 评论(0) 推荐(0) 编辑