跳到正文

个人记录

倒计时器(比较准)

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

文章信息

收录
2026年4月11日
更新
2026年4月11日
篇幅
约 1 分钟

版本

  1. v1当前
C++
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int main()
{
	double n;
	cin>>n;
	int x=n*60;
	for(int i=x;i>0;i--){
		printf("剩余:%ds" ,i);
		Sleep(960.9);
		system("cls");
	}
	cout<<"time over!";
	return 0;
}
原文