Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <algorithm>
- #include <string>
- #include <Windows.h>
- #include "characterList.h"
- #include "toLowerCase.h"
- using namespace std;
- int main() {
- HANDLE hConsole;
- hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
- // COLOR TESTER:
- // for (int i = 0; i <= 255; i++) {
- // SetConsoleTextAttribute(hConsole, i);
- // cout << i << ": The quick brown fox jumps over the lazy dog! \n";
- // }
- const string C_letters = "qwertyuiopasdfghjklzxcvbnm";
- const string C_numbers = "0123456789";
- const string C_poorSymbols = "/*-+.,";
- const string C_richSymbols = "!@#$%^&*()_{}[]'\\\"|:;<>`~";
- string difficulty;
- int stringLength = 1;
- SetConsoleTextAttribute(hConsole, 10);
- cout <<
- ".: Please select difficulty :.\n" <<
- ":: Difficulties ::\n" <<
- ":: You can combine by adding them together ::\n" <<
- "': LETTERS -L , NUMBERS -N , POOR -P , RICH -R :'" << endl;
- cin >> difficulty;
- cout << "Select the max length of string (Default- 1): ";
- cin >> stringLength;
- cout << endl;
- difficulty = toLowerCase(difficulty);
- int selection = 0;
- /*
- =========================================
- ALL = ALL! :D
- 13 = L
- 23 = N
- 34 = P
- 45 = R
- 36 = L, N
- 47 = L, P
- 58 = L, R
- 57 = N, P
- 68 = N, R
- 79 = P, R
- =========================================
- */
- for (int i = 0; i < difficulty.length(); i++) {
- if (difficulty[i] == 'l') selection += 13;
- if (difficulty[i] == 'n') selection += 23;
- if (difficulty[i] == 'p') selection += 34;
- if (difficulty[i] == 'r') selection += 45;
- }
- if (selection == 0) {
- SetConsoleTextAttribute(hConsole, 78);
- cout << "\nERROR: Cannot read valid input info! (Try and type the correct form. Example: NL or ALL\n\n" << endl;
- return 1;
- } else if (selection == 13) { // This is for letters.
- for (int i = 0; i < C_letters.length(); i++) {
- cout << i + 1 << " : " << C_letters[i] << endl;
- }
- //ToDo: FIX UR SHITTY TRASH remarks/help: m>qm mm>qqm qmm mmm>mmmm etc..
- } else if (selection == 23) { // This is for numbers.
- while (stringLength > 0) {
- for (int i = 0; i < C_numbers.length(); i++) {
- cout << C_numbers[i];
- } // Dont mind this up here its trash code ;d
- stringLength--;
- }
- }
- cout << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement