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0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,
	0,0,0,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,0,0,0,
	0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0, };

	int t[9][22] = { 0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,
	0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,
	1,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,1,
	1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,
	0,1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,1,0,
	0,0,1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,1,0,0,
	0,0,0,0,1,0,0,0,0,1,0,0,0,0,1,0,0,1,0,0,0,0,
	0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,1,1,0,0,0,0,0,
	0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0, };

	system("title I Love You");
	printf("%s", " ");
	Sleep(N);
	printf("%s", "其");
	Sleep(M);
	printf("%s", "实\n");
	printf("%s", " ");
	system("color 72");
	Sleep(N);
	printf("%s", "有");
	Sleep(M);
	printf("%s", "一");
	Sleep(M);
	printf("%s", "句");
	Sleep(M);
	printf("%s", "话\n");
	printf("%s", " ");
	system("color 79");
	Sleep(N);
	printf("%s", "一");
	Sleep(M);
	printf("%s", "直");
	Sleep(M);
	printf("%s", "藏");
	Sleep(M);
	printf("%s", "在");
	Sleep(M);
	printf("%s", "我");
	Sleep(M);
	printf("%s", "心");
	Sleep(M);
	printf("%s", "里\n");
	printf("%s", " ");
	system("color 7c");
	Sleep(N);
	printf("%s", "可");
	Sleep(M);
	printf("%s", "是\n");
	printf("%s", " ");
	system("color 7d");
	Sleep(N);
	printf("%s", "我");
	Sleep(M);
	printf("%s", "没");
	Sleep(M);
	printf("%s", "有");
	Sleep(M);
	printf("%s", "勇");
	Sleep(M);
	printf("%s", "气");
	Sleep(M);
	printf("%s", "对");
	Sleep(M);
	printf("%s", "你");
	Sleep(M);
	printf("%s", "说\n");
	printf("%s", " ");
	system("color 7e");
	Sleep(N);
	printf("%s", "今");
	Sleep(M);
	printf("%s", "天\n");
	printf("%s", " ");
	system("color 7a");
	Sleep(N);
	printf("%s", "我");
	Sleep(M);
	printf("%s", "终");
	Sleep(M);
	printf("%s", "于");
	Sleep(M);
	printf("%s", "鼓");
	Sleep(M);
	printf("%s", "起");
	Sleep(M);
	printf("%s", "勇");
	Sleep(M);
	printf("%s", "气\n");
	printf("%s", " ");
	system("color 7b");
	Sleep(N);
	printf("%s", "我");
	Sleep(M);
	printf("%s", "要");
	Sleep(M);
	printf("%s", "对");
	Sleep(M);
	printf("%s", "你");
	Sleep(M);
	printf("%s", "说:\n");
	printf("%s", " ");
	system("color 79");
	Sleep(N);
	printf("%s", "我");
	Sleep(M);
	printf("%s", "…\n");
	printf("%s", " ");
	system("color 72");
	Sleep(N);
	printf("%s", "我");
	Sleep(M);
	printf("%s", "…");
	Sleep(M);
	printf("%s", "…\n");
	Sleep(N);
	system("color fc");
	for (int i = 0; i < 9; i++) {
		cout << " ";
		for (int j = 0; j < 36; j++) {
			if (f[i][j] == 0)
				cout << " ";
			else
				cout << "*";
		}
		cout << endl;
		Sleep(100);
	}
x:
	printf("%s", " ");
	Sleep(N);
	printf("%s", "你");
	Sleep(M);
	printf("%s", "愿");
	Sleep(M);
	printf("%s", "意");
	Sleep(M);
	printf("%s", "接");
	Sleep(M);
	printf("%s", "受");
	Sleep(M);
	printf("%s", "我");
	Sleep(M);
	printf("%s", "吗");
	Sleep(M);
	printf("%s", "?(Y/N)");
	cout << endl;
	cout << " ";
	cin >> ch;
	Sleep(N);
	if (ch[0] == 'y' || ch[0] == 'Y') {
		system("color fc");
		for (int i = 0; i < 9; i++) {
			cout << " ";
			for (int j = 0; j < 21; j++) {
				if (s[i][j] == 0)
					cout << " ";
				else
					cout << "*";
			}
			cout << endl;
			Sleep(100);
		}
		Sleep(3000);
	}
	else {
		if (ch[0] == 'n' || ch[0] == 'N') {
			system("color 0f");
			for (int i = 0; i < 9; i++) {
				cout << " ";
				for (int j = 0; j < 22; j++) {
					if (t[i][j] == 0)
						cout << " ";
					else
						cout << "*";
				}
				cout << endl;
				Sleep(100);
			}
			printf("%s", " ");
			Sleep(N);
			printf("%s", "心");
			Sleep(M);
			printf("%s", "碎");
			Sleep(M);
			printf("%s", "了");
			Sleep(M);
			printf("%s", "……\n");
		}
		else
			goto x;
	}
	system("color 0f");
	system("pause");
	return 0;
}

猜你喜欢

转载自blog.csdn.net/qq_45739057/article/details/105697729
今日推荐