摘要:多线程文件拷贝 #include <stdio.h> #include <pthread.h> #include <unistd.h> #include <stdlib.h> #include <assert.h> #include <sys/mman.h> #include <sys/types.
阅读全文
摘要:/1.创建一个子线程,子线程执行循环输出10次”hello,world”, 主线程循环100次输出”123456”,如此循环 50 次,试写出代码。/ #include <stdio.h> #include <pthread.h> #include <unistd.h> #include <stdl
阅读全文
摘要:https://files.cnblogs.com/files/blogs/793080/ftok.zip?t=1709037600&download=true
阅读全文
摘要:多进程拷贝数据 #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <sys/mman.h> #include <sys/wait.h> #include <unistd.h> #include <stdi
阅读全文
摘要:https://files.cnblogs.com/files/blogs/793080/mplayer.zip?t=1708694621&download=true
阅读全文
摘要:父子进程 #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
阅读全文
摘要:遍历目录和子目录 #include <sys/types.h> #include <dirent.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> void DIRENT(char *p
阅读全文
摘要:https://files.cnblogs.com/files/blogs/793080/0219.zip?t=1708343996&download=true
阅读全文
摘要:/2.请编写函数fun,它的功能是:求出1到100之内能被7或者11整除, 但不能同时被7和11整除的所有整数,并将他们放在a所指的数组中, 通过n返回这些数的个数/ #include <stdio.h> #include <string.h> int fun(int *buf) { int i=1
阅读全文
摘要:/1.m个人的成绩存放在score数组中,请编写函数fun, 它的功能是:将低于平均分的人数作为函数值返回, 将低于平均分的分数放在below所指1定的数组中。/ #include <stdio.h> #include <string.h> int fun(int *buf, int *buff,
阅读全文