自己做的私人助手小程序

来源:互联网 发布:金承志 知乎 编辑:程序博客网 时间:2024/06/02 12:01

//这款小应用的主要功能就是帮自己打开文件- -!//懒人癌我也是醉了。。。。#include<stdio.h>#include<stdlib.h>#include<windows.h>void showl(){for(int i=0;i<80;i++)printf("=");printf("\n");}int main(void){int choose;SetConsoleTitle("CatGlory的私人助手1.0"); // 获取窗口标题HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE); // 获取标准输出设备句柄SMALL_RECT rc = {0,0, 30-1, 15-1}; // 重置窗口位置和大小SetConsoleWindowInfo(hOut,true ,&rc);printf("你想干哈CatGlory!?\n这样真的好么。。。- -!!\n");showl();printf("1.11 AP   2.Warcraft\n""3.CS      4.QQ AP\n""5.Isaac   6.Cave Stroy\n");printf("\n等待你的输入~~呦呦~~\n");showl();while(scanf("%d",&choose)==1){//start "" "路径" 是为了能打开有空格的文件switch(choose){case 1:system("C:\\迅雷下载\\11game\\11game.exe");break;case 2:system("start \"\" \"C:\\迅雷下载\\魔兽争霸\\Warcraft III\\war3.exe\"");break;case 3:system("C:\\迅雷下载\\cstrike.exe");break;case 4:system("C:\\迅雷下载\\QQ对战平台\\腾讯对战平台\\dz.exe");break;case 5:system("start \"\" \"C:\\我的\\The Binding of Isaac\\Binding_of_Isaac.exe\"");break;case 6:system("start \"\" \"C:\\我的\\Cave Story\\CaveStory+.exe\"");break;default:printf("哪来的%d啊!不够自己编啊笨蛋!\n",choose);break;}printf("\n还来?有点志气好嘛!\n");}printf("Bye-Bye!\n");system("pause");CloseHandle(hOut); // 关闭标准输出设备句柄return 0;}


0 0
原创粉丝点击