废话一会儿
终于,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;
}
运行效果
这一期我增加了图标!