Mercurial > codedump
annotate win95kg.cpp @ 4:0a19385c6066
Update peardeck.cpp
committer: GitHub <noreply@github.com>
| author | Paper <37962225+mrpapersonic@users.noreply.github.com> | 
|---|---|
| date | Mon, 04 Jan 2021 14:20:30 -0500 | 
| parents | fcbeb8097ad3 | 
| children | 9241ce1e5abe | 
| rev | line source | 
|---|---|
| 1 
05978f04869b
Add files via upload
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: diff
changeset | 1 /* Windows 95 Keygen - 11/24/20 | 
| 
05978f04869b
Add files via upload
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: diff
changeset | 2 By Paper | 
| 
05978f04869b
Add files via upload
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: diff
changeset | 3 not sure if this will work fully, but from what i've seen it works well enough | 
| 
05978f04869b
Add files via upload
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: diff
changeset | 4 */ | 
| 
05978f04869b
Add files via upload
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: diff
changeset | 5 #include <ctime> | 
| 3 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 6 | 
| 1 
05978f04869b
Add files via upload
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: diff
changeset | 7 #include <cstdlib> | 
| 3 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 8 | 
| 1 
05978f04869b
Add files via upload
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: diff
changeset | 9 #include <cstring> | 
| 3 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 10 | 
| 1 
05978f04869b
Add files via upload
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: diff
changeset | 11 #include <iomanip> | 
| 3 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 12 | 
| 1 
05978f04869b
Add files via upload
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: diff
changeset | 13 #include <iostream> | 
| 3 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 14 | 
| 1 
05978f04869b
Add files via upload
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: diff
changeset | 15 #include <string> | 
| 
05978f04869b
Add files via upload
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: diff
changeset | 16 | 
| 
05978f04869b
Add files via upload
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: diff
changeset | 17 int a(), b(), c(), d(), e(); | 
| 3 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 18 int main(int argc, char * argv[]) { | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 19 int endpoint, startpoint, sadsong; | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 20 srand((unsigned) time(NULL)); | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 21 if (argc >= 2) { | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 22 if (strcmp(argv[1], "--office") == 0) { | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 23 startpoint = c(); | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 24 sadsong = 4; | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 25 } else if (strcmp(argv[1], "--oem") == 0) { | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 26 int first = d(), third = e(); | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 27 std::cout << std::setw(5) << std::setfill('0') << first; | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 28 std::cout << "-OEM-"; | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 29 std::cout << std::setw(7) << std::setfill('0') << third << "-"; | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 30 std::cout << std::setw(5) << std::setfill('0') << (rand() % 100000); | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 31 return 0; | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 32 } else if (strcmp(argv[1], "--normal") == 0) { | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 33 startpoint = a(); | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 34 sadsong = 3; | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 35 } else { | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 36 std::cout << "usage: " << argv[0] << " [--normal] [--oem] [--office]"; | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 37 return 0; | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 38 } | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 39 } else { | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 40 std::cout << "usage: " << argv[0] << " [--normal] [--oem] [--office]"; | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 41 return 0; | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 42 } | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 43 endpoint = b(); | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 44 std::cout << std::setw(sadsong) << std::setfill('0') << startpoint << "-"; | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 45 std::cout << std::setw(7) << std::setfill('0') << endpoint; | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 46 return 0; | 
| 1 
05978f04869b
Add files via upload
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: diff
changeset | 47 } | 
| 3 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 48 int a() { | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 49 int num; | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 50 num = rand() % 1000; | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 51 while ((num == 333) and(num == 444) and(num == 555) and(num == 666) and(num == 777) and(num == 888) and(num == 999)) { | 
| 1 
05978f04869b
Add files via upload
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: diff
changeset | 52 num = rand() % 1000; | 
| 3 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 53 } | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 54 while ((num % 3) != 0) { | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 55 num = num + 1; | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 56 } | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 57 return num; | 
| 1 
05978f04869b
Add files via upload
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: diff
changeset | 58 } | 
| 3 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 59 int b() { | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 60 int first_digits = rand() % 10000000; | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 61 int last_digit = rand() % 10; | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 62 while ((last_digit == 0) || (last_digit >= 8)) { | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 63 last_digit = rand() % 10; | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 64 } | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 65 std::string thisis = std::to_string(first_digits); | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 66 std::string veryfrustrating = std::to_string(last_digit); | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 67 std::string second_segment_p1 = (std::string(thisis) + std::string(veryfrustrating)); | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 68 int second_segment = std::stoi(second_segment_p1); | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 69 while (second_segment % 7 != 0) { | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 70 first_digits = rand() % 10000000; | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 71 last_digit = rand() % 10; | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 72 while ((last_digit == 0) || (last_digit >= 8)) { | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 73 last_digit = rand() % 10; | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 74 } | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 75 std::string thisis = std::to_string(first_digits); | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 76 std::string veryfrustrating = std::to_string(last_digit); | 
| 1 
05978f04869b
Add files via upload
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: diff
changeset | 77 std::string second_segment_p1 = (std::string(thisis) + std::string(veryfrustrating)); | 
| 3 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 78 second_segment = std::stoi(second_segment_p1); | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 79 } | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 80 return second_segment; | 
| 1 
05978f04869b
Add files via upload
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: diff
changeset | 81 } | 
| 
05978f04869b
Add files via upload
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: diff
changeset | 82 | 
| 3 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 83 int c() { | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 84 int new_site = rand() % 1000; | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 85 int ez_pwned = new_site % 10 + 1; | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 86 while (ez_pwned >= 10) { | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 87 ez_pwned = ez_pwned - 10; | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 88 } | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 89 std::string thisisstill = std::to_string(new_site); | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 90 std::string prettyfrustrating = std::to_string(ez_pwned); | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 91 std::string iamsocool = (std::string(thisisstill) + std::string(prettyfrustrating)); | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 92 int mysinusesareclogged = std::stoi(iamsocool); | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 93 return mysinusesareclogged; | 
| 1 
05978f04869b
Add files via upload
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: diff
changeset | 94 } | 
| 
05978f04869b
Add files via upload
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: diff
changeset | 95 | 
| 3 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 96 int d() { | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 97 int day = (rand() % 366) + 1; | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 98 const char * years[] = { | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 99 "95", | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 100 "96", | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 101 "97", | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 102 "98", | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 103 "99", | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 104 "00", | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 105 "01", | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 106 "02", | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 107 "03" | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 108 }; | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 109 int index = (rand() % 9); | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 110 const char * year = years[index]; | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 111 std::string iamsotired = std::to_string(day); | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 112 std::string ofdoingthis = year; | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 113 std::string pleasehelp = (std::string(iamsotired) + std::string(ofdoingthis)); | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 114 int ohmygod = std::stoi(pleasehelp); | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 115 return ohmygod; | 
| 1 
05978f04869b
Add files via upload
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: diff
changeset | 116 } | 
| 
05978f04869b
Add files via upload
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: diff
changeset | 117 | 
| 3 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 118 int e() { | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 119 int first_digits = rand() % 1000000; | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 120 int last_digit = rand() % 10; | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 121 while ((last_digit == 0) || (last_digit >= 8)) { | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 122 last_digit = rand() % 10; | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 123 } | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 124 std::string thisis = std::to_string(first_digits); | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 125 std::string veryfrustrating = std::to_string(last_digit); | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 126 std::string second_segment_p1 = (std::string(thisis) + std::string(veryfrustrating)); | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 127 int second_segment = std::stoi(second_segment_p1); | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 128 while (second_segment % 7 != 0) { | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 129 first_digits = rand() % 10000000; | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 130 last_digit = rand() % 10; | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 131 while ((last_digit == 0) || (last_digit >= 8)) { | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 132 last_digit = rand() % 10; | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 133 } | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 134 std::string thisis = std::to_string(first_digits); | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 135 std::string veryfrustrating = std::to_string(last_digit); | 
| 1 
05978f04869b
Add files via upload
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: diff
changeset | 136 std::string second_segment_p1 = (std::string(thisis) + std::string(veryfrustrating)); | 
| 3 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 137 second_segment = std::stoi(second_segment_p1); | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 138 } | 
| 
fcbeb8097ad3
win95kg.cpp - add check for last digit in e()
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: 
1diff
changeset | 139 return second_segment; | 
| 1 
05978f04869b
Add files via upload
 Paper <37962225+mrpapersonic@users.noreply.github.com> parents: diff
changeset | 140 } | 
