Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <windows.h>
- using namespace std;
- void color(int num)
- {
- HANDLE color=GetStdHandle(STD_OUTPUT_HANDLE);
- SetConsoleTextAttribute(color, num);
- }
- int main()
- {
- color(15);
- cout<<"\n\t\t +-----------+ "<<endl;
- cout<<"\t\t+------------| ";
- color(13);
- cout<<"Main Menu";
- color(15);
- cout<<" |------------+"<<endl;
- cout<<"\t\t| +-----------+ |"<<endl;
- cout<<"\t\t| |"<<endl;
- cout<<"\t\t| +-------------+ |"<<endl;
- cout<<"\t\t| | ";
- color(10);
- cout<<"Tic Tac Toe";
- color(15);
- cout<<" | |"<<endl;
- cout<<"\t\t| +-------------+ |"<<endl;
- cout<<"\t\t| |"<<endl;
- cout<<"\t\t| +-------------+ |"<<endl;
- cout<<"\t\t| | ";
- color(12);
- cout<<"Master ";
- color(9);
- cout<<"Mind";
- color(15);
- cout<<" | |"<<endl;
- cout<<"\t\t| +-------------+ |"<<endl;
- cout<<"\t\t| |"<<endl;
- cout<<"\t\t| +-------------+ |"<<endl;
- cout<<"\t\t| | ";
- color(11);
- cout<<"Blackjack";
- color(15);
- cout<<" | |"<<endl;
- cout<<"\t\t| +-------------+ |"<<endl;
- cout<<"\t\t| |"<<endl;
- cout<<"\t\t+-------------------------------------+"<<endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment