论我自己乱编的DOS系统
查看原帖
论我自己乱编的DOS系统
1213524
C_plus_plus_12345楼主2024/1/27 10:59
#include<bits/strongc++.h>
using namespace std;
int a, b;
char com[10001];
int main()
{
	srand((unsigned long)time(NULL));
	cout<<"启动管理器"<<endl
		<<"1. 正常开启"<<endl
		<<"2. 嘚嘚嘚嘚嘚嘚"<<endl
		<<"3. 退出"<<endl;
	cin>>a;
	switch (a)
	{
		case 1:
		{
			system("cls");
			cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n加载中...";
			break;
		}
		case 2:
		{
			system("cls");
			cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n加载中...";
			break;
		}
		case 3:
		{
			return 0;
		}
	}
	Sleep(5000);
	system("cls");
	system("color 1f");
	cout<<"你真的要运行吗?"<<endl;
	cin>>b;
	if(b==0)
	{
		system("cls");
		cout<<"(ノ`Д)ノ滚犊子"<<endl;
		Sleep(2000);
		system("cls");
		return 0;
	}
	system("cls");
	cout<<"原神(划掉)DOS,启动!!!!!"<<endl;
	Sleep(10000);
	system("cls");
	for(int i=1;i<=100;i++)
	{
		for(int j=1;j<=100;j++)
		{
			cout<<(char)(rand()%127);
		}
		cout<<"\n"<<endl;
	}
	Sleep(2000);
	system("cls");
	system("color 0f");
	system("pause");
	system("cls");
	system("cmd");
	while(scanf("%s", com)!=EOF)
	{
		system(com);
	}
}

有点简陋,不喜勿喷。

2024/1/27 10:59
加载中...