2021年11月15日

main参数

摘要: 参考 http://www.cnblogs.com/rocedu/p/6766748.html#SECCLA 在Linux下完成“求命令行传入整数参数的和” 注意C中main: int main(int argc, char *argv[]), 字符串“12” 转为12,可以调用atoi() 求和函 阅读全文

posted @ 2021-11-15 11:37 20191224 阅读(35) 评论(0) 推荐(0) 编辑

thread同步

摘要: #include <stdio.h> #include <pthread.h> #include <stdlib.h> #include <semaphore.h> #define NUM 5 int queue[NUM]; sem_t blank_number, product_number; v 阅读全文

posted @ 2021-11-15 11:24 20191224 阅读(25) 评论(0) 推荐(0) 编辑

thread互斥

摘要: #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <ctype.h> struct arg_set { char *fname; int count; }; struct arg_set *mailbox = N 阅读全文

posted @ 2021-11-15 11:01 20191224 阅读(23) 评论(0) 推荐(0) 编辑

实验二测试

摘要: 1. 提交使用SM3算法计算你的8位学号的摘要的命令和结果的截图 2 提交使用SM4算法加密上一步摘要的命令和结果的截图(使用你的姓名拼音作为口令) 3 提交使用SM4算法解密上一步密文的命令和结果的截图 4 提交使用SM4算法加密第1步摘要的命令和结果的截图(使用产生的随机数作为密钥) 5 提交使 阅读全文

posted @ 2021-11-15 10:31 20191224 阅读(22) 评论(0) 推荐(0) 编辑

导航