![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
想敲代码的羊羊羊
这个作者很懒,什么都没留下…
展开
-
C语言 计算某日是该年的第几天
#include <stdio.h> //判断是否为闰年 int leap(int a) { if(a%4==0 && a%100 != 0 || a%400==0)//闰年判断条件 return 1; //是闰年返回1 else return 0; //不是闰年返回0 } //计算输入的是第几天 int num(int year,int m,.原创 2022-01-19 16:50:55 · 175 阅读 · 0 评论 -
undefined reference to `pthread_create`的解决方法
在linux中出现一下的报错 test_pc.c:(.text+0x2b7): undefined reference to `pthread_create' test_pc.c:(.text+0x2d2): undefined reference to `pthread_create' test_pc.c:(.text+0x2e5): undefined reference to `pthread_join' test_pc.c:(.text+0x2f8): undefined reference t原创 2021-12-08 09:48:55 · 662 阅读 · 2 评论