- 博客(4)
- 收藏
- 关注
原创 一分钟关机小程序
#include<stdio.h>#include<string.h>#include<stdlib.h>int main (){char input[20]={0}; system("shutdown -s -t 60"); again: printf("请注意,你的电脑再一分钟以内关机,如果输入:我是猪,就取消关机"); scanf("%s",input); if(strcmp(input,"我是猪")==0){ system("shutdow.
2022-05-17 21:22:55
57
原创 大学C语言第一次作业
第一个是天数转换:#include<stdio.h>int main(){ unsigned short date = 0, week = 0, day = 0; printf("请输入天数\n"); scanf_s("%hd", &date); week = date / 7; day = date % 7; printf("%hd days are %hd weeks,%hd days", date, week, day); return 0;}然后是密
2022-04-09 18:14:54
551
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人