- 博客(4)
- 收藏
- 关注
原创 简单C++关机程序(源码)
简单C++关机程序(源码): #include using namespace std; int main() { system(“title C++关机程序”); system(“mode con cols=35 lines=20”); system(“color 0”); system(“date /T”); system(“TIME /T”); cout<<"--------c+...
2019-08-23 21:31:00
1196
原创 一个十分简单的猜数游戏(源码)
一个十分简单的猜数游戏(源码): #include using namespace std; void main() { int a; for (cout<<“请输入一个数:”<<endl; cin>>a; )if(a<25) { cout<<“数太小了,往大里猜猜”<<endl; } else if(a>25) { cout...
2019-08-20 21:20:54
275
原创 电脑关机程序(源码)
电脑关机程序源码: #include using namespace std; void main() { cout<<“电脑将在20分钟后关机!”<<endl; system(“shutdown -s -f -t 1200”); return; } system(“shutdown -s -f -t 1200”);中1200可更改,1200为1200秒后关机。可更改关机时...
2019-08-20 20:08:02
1258
原创 判断闰年(源码)
小程序判断闰年源码: #include using namespace std; int main() { int year; cout << "输入年份: "; cin >> year; if (year % 4 == 0) { if (year % 100 == 0) { // // 这里如果被 400 整数是闰年 i...
2019-08-20 20:02:54
125
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人