C++:CSDN云服务器3.0

废话一会儿

终于,CSDN云服务器又更了

事情是这样的:

        我的一个室友,知道了我的CSDN云服务器,觉得感兴趣,就让我开发一个3.0版本的。我媜了好久好久,搞出来个怪名堂,刷块刷得不行。他表示这简直就是2.000001版本。

        于是,Maker继续。。。

        终于CSDN云服务器3.0开发啦!

        我这次不想推辞,直接把音乐、源文件和应用程序放一块了,还增加了图标!去上面下载

代码 

#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 Chat = NewButton(10, 2, 0 | 19, "私聊/信息");
Button Load = NewButton(10, 16, 0 | 19, "上传资源");
Button Icos = NewButton(13, 2, 0 | 19, "生成ico");
Button Exit = NewButton(13, 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=22");
	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\n\n\n\n\n\n\n\n\n\n\n");
		printf("┏━━━━━━━━━━━━┓\n");
		printf("┃---                     ┃\n");
		printf("┃                        ┃\n");
		printf("┃                        ┃\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(Load))
			{ 
				system("start https://upload.csdn.net/creation/uploadResources?username=HappyStarLap&utm_medium=notify.im.low_quality_source_pre.20240203.a");
				goto Nature;
			}
			else if(Preserve(Icos))
			{
				__color(175);
				GOTOXY(15, 3);
				printf("请选择路径:\n");
				printf("┃1、bejson 2、ico51\n");
				int ico;
				cin >> ico;
				if(ico == 1)
					system("start https://www.bejson.com/ui/icomaker/");
				if(ico == 2)
					system("start https://www.ico51.cn/");
				else
					goto Nature;	
			}
			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");
			}
		}
	return 0;
}

运行效果

这一期我增加了图标!

 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

快乐星空Maker

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

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

打赏作者

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

抵扣说明:

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

余额充值