摘要: 代码 main #include<stdio.h> #include<stdlib.h> //定义此头文件,里面包含一些宏和通用工具函数,包含atoi()函数 int sum(int N,int arr[]); //声明sum函数 int main(int argc,char *argv[]) // 阅读全文
posted @ 2021-11-15 11:52 20191301 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 1 编译运行附件中的代码,提交运行结果截图,并说明程序功能 #include <stdio.h> #include <pthread.h> #include <stdlib.h> #include <semaphore.h> #define NUM 5 int queue[NUM]; sem_t b 阅读全文
posted @ 2021-11-15 11:28 20191301 阅读(25) 评论(0) 推荐(0) 编辑