![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c语言从入门到项目实践
weixin_45958231
这个作者很懒,什么都没留下…
展开
-
日期相关问题(打印月历)
日期相关问题打印月历#include<stdio.h>int monthdays[2][13]={{0,31,28,31,30,31,30,31,30,31,30,31,30},{0,31,29,31,30,31,30,31,30,31,30,31,30}};int IsLeap(int y);int Value(int y,int m);void Draw(int y,i...原创 2020-03-12 11:53:28 · 290 阅读 · 0 评论 -
日期相关问题(n天以后问题)
当前计算机系统的日期#include<stdio.h>#include<time.h>int main(void){ time_t now,t1; t1=time(&now); printf("距离1970年1月1日0时的秒数,当前日历时间:%u\n",t1); struct tm *localtp; localtp=localtime(&...原创 2020-03-11 15:09:45 · 436 阅读 · 0 评论 -
C语言从入门到项目实战,第一次打代码,不知为何是错的
C语言从入门到项目实战反正错了,不知道为啥第220面内容#include <stdlib.h>#include <time.h>int Compute(int x,char op ,int y);int a,b;int main(void){ int n,k; char op; int a,b,ans,yans; ...原创 2020-02-01 14:50:29 · 152 阅读 · 0 评论