亮亮的职工管理系统加注释版 #include <stdio.h> #include <string.h> struct worker/*定义结构体存储职工信息*/ { char num[10];/*职工号*/ char n…[阅读更多]
给徒弟写的一道作业题(C语言)
总体要求: 一般每题要求四个函数,输入函数可以从in.dat中读数据,也可用rand()函数自行产生,输出函数完成把结果输出到屏幕或文件的任务,核心处理函数完成题目规定的要求,main()函数要求以尽可能友好、对程序…[阅读更多]
等分中闲来无事,写了个倒计时程序
#include <stdio.h> #include <windows.h> #include <time.h> int main() { int year,mon,day,hour,min,sec; printf("year=");//年 scanf("%d",&year); printf(" "); printf("mon=");//月 sca…[阅读更多]