Code: Show/Hide #include <windows.h>
#include <iostream> #include <stdlib.h> using namespace std; #define PI 3.1415926535897932384626433832785 int main() { SetConsoleTitle("A3 Shortcuts V8"); SetCursorPos(512,512); int menu1; HANDLE menu; menu = GetStdHandle(STD_OUTPUT_HANDLE); SetConsoleTextAttribute(menu,FOREGROUND_GREEN|BACKGROUND_BLUE); cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"; cout<<"+----------------------------+"<<endl; cout<<"| Welcome to A3 Shortcuts V8 |"<<endl; cout<<"|____________________________|"<<endl; cout<<"| |"<<endl; cout<<"| Value - Description |"<<endl; cout<<"|____________________________|"<<endl; cout<<"| 1 - A3 Studios Home Page |"<<endl; cout<<"| 2 - Metalic Rift Home Page |"<<endl; cout<<"| 3 - Hack Bin Home Page |"<<endl; cout<<"| 4 - Mine Go Boom Forums |"<<endl; cout<<"| 5 - Server Set Up Shanky |"<<endl; cout<<"| 6 - Merv Bot Downloads |"<<endl; cout<<"| 7 - Programs |"<<endl; cout<<"| 8 - Credits/ other info |"<<endl; cout<<"| 0 - closes program |"<<endl; cout<<"+----------------------------+"<<endl; HANDLE text; text = GetStdHandle(STD_OUTPUT_HANDLE); SetConsoleTextAttribute(text,FOREGROUND_GREEN); cout<<"\n\n\nPlease type in the value and press enter: "; cin>>menu1; switch (menu1) { case 0: return 0; break; case 1: ShellExecute(NULL, "open", "http://a3studio.4t.com", NULL, NULL, SW_SHOWNORMAL); break; case 2: ShellExecute(NULL, "open", "http://www.fur4x-hebergement.net/foxnetworks/metallicrift/", NULL, NULL, SW_SHOWNORMAL); break; case 3: ShellExecute(NULL, "open", "http://hackbin.phpnet.us/", NULL, NULL, SW_SHOWNORMAL); break; case 4: ShellExecute(NULL, "open", "http://forums.minegoboom.com/", NULL, NULL, SW_SHOWNORMAL); break; case 5: ShellExecute(NULL, "open", "http://www.shanky.com/server/", NULL, NULL, SW_SHOWNORMAL); break; case 6: ShellExecute(NULL, "open", "http://catid.sscontinuum.com/", NULL, NULL, SW_SHOWNORMAL); break; case 7: int menu2; cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"; HANDLE menu; menu = GetStdHandle(STD_OUTPUT_HANDLE); SetConsoleTextAttribute(menu,FOREGROUND_GREEN|BACKGROUND_BLUE); cout<<"+-------------------------------------+"<<endl; cout<<"| 0 - Close programs |"<<endl; cout<<"| 1 - Area of a circle (very percise) |"<<endl; cout<<"| 2 - Count down Timer (super precise)|"<<endl; cout<<"+-------------------------------------+"<<endl; HANDLE text; text = GetStdHandle(STD_OUTPUT_HANDLE); SetConsoleTextAttribute(text,FOREGROUND_GREEN); cout<<"\n\n\n\n\n\nPlease choose the Program you want to use: "; cin>>menu2; switch (menu2) { case 0: return main(); break; case 1: double answer; double radius; cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"; cout<<"Please enter the radius (can use decimal points) :"; cin>>radius; answer = PI * radius * radius; cout<<"\n\n\n\nThe area of your circle is "<<answer<<"\n\n\n\n\n\n"; system("pause"); break; case 2: cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"; cout<<"This is A3 Stop Watch, just type in how many seconds!"; cout<<"\nAlso you can use decimal points like 5.323"; cout<<"\n\n\n\n\nType in the seconds you want to time: "; double countdown; cin>>countdown; while ( countdown > 0 ) { cout<< countdown <<" ,"; Sleep(1000); --countdown; } cout<<"Time up!\a\n\n"; system("pause"); } break; case 8: int info; cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"; cout<<"What would you like to view?"<<endl; cout<<"1 - The first A3 Shortcuts project"<<endl; cout<<"2 - Differences between A3 Shortcuts and A3 Shortcuts V18"<<endl; cout<<"0 - Go back to main menu"; cout<<"\n\n\nPlease enter your choice: "; cin>>info; switch (info) { case 1: ShellExecute(NULL, "open", "http://forums.minegoboom.com/viewtopic.php?t=6988", NULL, NULL, SW_SHOWNORMAL); break; case 2: cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"; cout<<"There are view differences like added collored text and backrounds, then its not just"; cout<<"\nwebsite shortcuts but it has couple features like in Programs where you can find a"; cout<<"\narea of a circle calculator and a countdown timer. Also an icon was added!\n\n"<<endl; system("pause"); break; case 0: return main(); break; } default: cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n "; cout<<"The Value you entered is unknown \a\n"; system("pause"); break; } return main(); } |
Code: Show/Hide const char *menu =
"+----------------------------+\n" "| Welcome to A3 Shortcuts V8 |\n" "|____________________________|\n" "| |\n" "| Value - Description |\n" "|____________________________|\n" "| 1 - A3 Studios Home Page |\n" "| 2 - Metalic Rift Home Page |\n" "| 3 - Hack Bin Home Page |\n" "| 4 - Mine Go Boom Forums |\n" "| 5 - Server Set Up Shanky |\n" "| 6 - Merv Bot Downloads |\n" "| 7 - Programs |\n" "| 8 - Credits/ other info |\n" "| 0 - closes program |\n" "+----------------------------+\n"; cout << menu; |