C++:CSDN云服务器2.0

(水一期)

代码:

#include 
#include 
#include 
#include 
#include 
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 Chat = NewButton(10, 2, 0 | 19, "私聊/信息");
Button Exit = NewButton(10, 16, 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");
	system("mode con cols=30 lines=12");
	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(Chat))
				system("start https://i.csdn.net/#/msg/chat/yueyuedog");
			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;
}

音乐也换啦!

快去下载吧! 

效果:

C++:CSDN云服务器2.0_第1张图片

C++:CSDN云服务器2.0_第2张图片

你可能感兴趣的:(普普通通的程序,c++,服务器,开发语言)