每一次打开我的个人中心——(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");MaKer_print("欢迎使用CSDN一站式云服务器!\n",0.035);MaKer_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);elsesystem("color af");}}goto Nature;return 0;
}
里面需要两个音乐:
WIN.wav
SNA.wav
快去上面下载!!!