C++:CSDN云服务器1.0


          i i i i i i i i i i
      |: H : a : p : p : y :|
___|_____________|___
|^^^^^^^^^^^^^^^^^^^^^^^|
|: 
B : i : r : t : h : d : a : y :|
|                                      |    
~~~~~~~~~~~~~~~~~~~ 

每一次打开我的个人中心——(T_T)

1、右下角加载个不停...... (耗时一分钟)

2、闪白影......  (耗时30秒)

3、加载出浏览器...... (耗时10秒)

4、打开\加载网站...... (耗时1分钟)

这太耗时了!!!!!

我灵机一动,整出一顿CSDN云服务器!!!!!!

上代码!

需要使用Button.h奥。

#include <heker.h>
#include <Button.h>
#include <graphics.h>
#include <bits/stdc++.h>
#include <windows.h>
using namespace std;
MUSIC bgMusic;
HWND hWnd = GetConsoleWindow(); 
Button Start = NewButton(4, 2, 0 | 19, "个人中心");
Button Blog = NewButton(4, 16, 0 | 19, "发布文章");
Button Ask = NewButton(7, 2, 0 | 19, "发布问答");
Button Text = NewButton(7, 16, 0 | 19, "发布帖子");
Button Exit = NewButton(10, 2, 0 | 7, "退出...");
void BeepMusic(const char *musicname)
{
	bgMusic.OpenFile(musicname);
	bgMusic.SetVolume(1.0f);
	if (bgMusic.IsOpen()) {
		bgMusic.Play(0);
	}
}
void start()
{
	system("@echo off");
    SetWindowLong(hWnd, GWL_EXSTYLE, WS_EX_TOOLWINDOW);
	HideCursor();
	system("mode con cols=100 lines=30");
	system("color af");
	BeepMusic("WIN.wav");
	for (int i = 1; i <= 15; i++)
		printf("\n");
	for (int i = 1; i <= 5; i++)
		printf("\t");
	printf("Cookie MaKer %c\n",1);
	system("timeout /t 2");
	system("color 8f");
	for(int i = 1;i <= INT_MAX / 18; i++)
		i++;
	system("color 08");
	for(int i = 1;i <= INT_MAX / 24; i++)
		i++;
	system("cls");
	for(int i = 1;i <= INT_MAX / 24; i++)
		i++;
	system("cls");
}
int main(){
	start();
	system("color 9f");
	system("color bf");
	system("color cf");
	system("color df");
	system("color ef");
	system("color af");
	BeepMusic("SNA.wav");
	print("欢迎使用CSDN一站式云服务器!\n",0.035);
	print("请点击您的选项:\n",0.045);
	system("cls");
	Nature:
		system("cls");
		system("color af");
		printf("欢迎使用CSDN一站式云服务器!\n");
		printf("请点击您的选项:\n");
		printf("#####################################\n");
		while(1)
		{
			if(Preserve(Start)) 
				system("start https://blog.csdn.net/HappyStarLap?type=blog");
			else if(Preserve(Blog)) 
				system("start https://mp.csdn.net/mp_blog/creation/editor?spm=1001.2014.3001.5352");
			else if(Preserve(Ask)) 
				system("start https://ask.csdn.net/new?utm_source=p_toolbar&spm=1001.2101.3001.5354");
			else if(Preserve(Text)) 
				system("start https://bbs.csdn.net/forums/FreeZone?typeId=2242079");
			else if(Preserve(Exit))
			{ 
				system("color 80");
				if(MessageBox(NULL, "Do You Want Exit Really?\n:(", "[Tips]", MB_ICONINFORMATION|MB_YESNO) == IDYES)
					exit(0);
				else
					system("color af");
			}
		}
	goto Nature;
	return 0;
}

里面需要两个音乐:

WIN.wav

SNA.wav

快去上面下载!!!

 运行效果:

  • 9
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

快乐星空Maker

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值