rendered paste body#include <iostream> // Omg the almighty first header file O.o
using namespace std; // something mirchiss likes xD
// start of the clearscreen code to use it ---> clrscrn();
void clrscr(void)
{ // clear screen function
COORD coordScreen = { 0, 0 };
DWORD cCharsWritten;
CONSOLE_SCREEN_BUFFER_INFO csbi;
DWORD dwConSize;
HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
GetConsoleScreenBufferInfo(hConsole, &csbi);
dwConSize = csbi.dwSize.X * csbi.dwSize.Y;
FillConsoleOutputCharacter(hConsole, TEXT(' '),
dwConSize, coordScreen, &cCharsWritten);
GetConsoleScreenBufferInfo(hConsole, &csbi);
FillConsoleOutputAttribute(hConsole, csbi.wAttributes,
dwConSize, coordScreen, &cCharsWritten);
SetConsoleCursorPosition(hConsole, coordScreen);
}
// end
main () { // the Main fucntion it is oh yes
cout << "Make a selection";
cout << "\n";
cout << " 1. Start Game "; // option 1
cout << "\n";
cout << " 2. Exit"; // option 2
cout << "\n";
cout << "Copiright Harmen Laan A.K.A The Tathor";
cin >> input;
switch (input) {
case 1:
clrscrn();
cin.get();
break;
case 2:
clrscrn();
cout << "Tnx for playing My Little game";
cin.get();
break;
default:
cout << "Bad Input you funky guy"; // if you putt bad in put
cin.get();
break;
}
}