跳到正文

科技·工程

闲的没事干写的小玩意

jiayu114514约 1 分钟
原文
文章信息与版本

文章信息

发布
2024年10月6日
收录
2025年12月12日
更新
2026年11月17日
篇幅
约 1 分钟

版本

  1. v1当前

弱蒟考试闲的没事干写的电子表QaQ

C++
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int main(){
	int k=0,j=0,a=0;
	cin>>k>>j>>a;
	for(int i=a;;i++){
		Sleep(1000);
		system("cls");
		cout<<k<<":"<<j<<":"<<i<<endl;
		if(i==59){
			j+=1;
			i=-1;
			if(j==59){
				k+=1;
				j=0;
				if(k==24){
					cout<<"today is end";
					return 0;
				}
			}
		}
	}
	return 0;
} 
原文