

#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
using namespace std;
//aditional functiones, for the usages of using quickly the long line smally
void loower(string strong) {
transform(strong.begin(),strong.end(),strong.begin(),::tolower);
}
void abert(string strong) { cerr<<strong<<endl; exit(1); }
void pln(string strong) { cout<<strong<<endl; }
bool validchar(char lol) {
return (lol>='0'&&lol<='9')
||(lol>='a'&&lol<='z')
||(lol>='A'&&lol<='Z')
||lol=='.'||lol=='_'
||lol=='-'||lol=='+';
}
int main() {
int aeg;
//<br>
//the above are an additional break of lines, for to line up an additonal line between the lines for a line taller
pln("gibe me aeg");
cin>>aeg;
cin.ignore();
if(aeg<18||aeg>30) abert("UR NOT TEH RITE AGE FAGET ur note beteen 18 an 30");
pln("wer u frum faget");
char* badcuntries_[] = {//huehuehue warnings
"america",
"usa",
"canada",
"zimbabwe"//zimbabwe has infiltraded
};
vector<string> badcuntries(badcuntries_, badcuntries_+4);
string hoemtownland;
getline(cin,hoemtownland);
loower(hoemtownland);
for(int i=0;i<badcuntries.size();++i)
if(!hoemtownland.compare(badcuntries[i]))
goto yoloswaglol;
abert("UR NOT SUPOSED 2 LIV DER STUPED");//ill fukken kill ur hole family
yoloswaglol://i used a goto r u flabergasted yet
//since <regex>es arent even implelemented yet i hav 2 do tihs retarded shite
pln("gibe me street");
string adres;
getline(cin,adres);
char* hue=(char*)adres.data();
int i;//hav 2 delcer outsid lup
for(i=0;hue[i]>='0'&&hue[i]<='9';++i);
if(i<3||hue[i]!=' ') abert("UR STRET NAM IS RETERTED");//street nam was never spesified to be alfabetic umad
pln("gibe emael");
string emael;
getline(cin,emael);
hue=(char*)emael.data();
//yea wen i saw the email part i was lik fuk dat
//do u even realiz how annoying itd be to guarntee a valid emal
//so thsi is a subbset of valid emaels (most emaels)
for(i=0;validchar(hue[i]);++i);
char* gudemaels_[] = {//huehuehue warnings
@Hotmail.com",
@yahoo.com",
"@gmail.com"
};
vector<string> gudemaels(gudemaels_,gudemaels_+3);
for(int j=0;j<gudemaels.size();++j)
if(!string(hue+i).compare(gudemaels[j]))
goto lolwenistehvelociraptorcomin2kilme;
abert("NOOO UR EMAIL SUX FAGET");
lolwenistehvelociraptorcomin2kilme:
pln("well done ur not retarded");
return 0;
}
// .i zo'onai xo'o mi kakne lonu do citka lo plise
#include <Windows.h>
#include <stdlib.h>
#include <time.h>
LRESULT WINAPI WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
switch( msg )
{
case WM_CLOSE:
ShowWindow(hWnd, SW_HIDE);
DestroyWindow(hWnd);
break;
case WM_PAINT:
{
HDC hdc = GetDC(0);
HDC bdc = CreateCompatibleDC(hdc);
HBITMAP bitmap = CreateCompatibleBitmap(hdc, 1000, 1000);
int height = -MulDiv(10, GetDeviceCaps(hdc, LOGPIXELSY), 72);
HFONT font = CreateFont(
height, 0, 0, 0, FW_DONTCARE, FALSE, FALSE, FALSE,
DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS,
ANTIALIASED_QUALITY, FF_DONTCARE, L"Arial");
for(int i = 0; i < 1000; i++){
HGDIOBJ oldbm = SelectObject(bdc, bitmap);
HGDIOBJ oldft = SelectObject(bdc, font);
int x = rand()%1000;
int y = rand()%1000;
RECT rc;
SetRect(&rc,x,y,x+40,y+20);
//FillRect(bdc, &rc, (HBRUSH)GetStockObject(WHITE_BRUSH))
DrawTextA(bdc, "POOP", 19, &rc, DT_LEFT|DT_EDITCONTROL);
BitBlt(hdc, 0, 0, 1000, 1000, bdc, 0, 0, SRCCOPY);
SelectObject(bdc, oldbm);
SelectObject(bdc, oldft);
}
DeleteObject(bitmap);
DeleteObject(font);
DeleteDC(bdc);
}
return 1;
case WM_DESTROY:
PostQuitMessage(0);
return 0;
case WM_KEYUP:
switch(wParam)
{
case VK_ESCAPE:
SendMessage(hWnd, WM_CLOSE, 0, 0);
break;
}
break;
default:
break;
}
return DefWindowProc(hWnd, msg, wParam, lParam);
}
INT WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nShowCmd)
{
HWND hwnd = 0;
srand(time(NULL));
WNDCLASSEX wc =
{
sizeof(WNDCLASSEX),
CS_CLASSDC,
(WNDPROC)WndProc,
0L, 0L,
hInst,
NULL, NULL, NULL, NULL,
L"huehue", NULL
};
RegisterClassEx(&wc);
int w = GetSystemMetrics(0);
int h = GetSystemMetrics(1);
DWORD style = WS_CLIPCHILDREN|WS_CLIPSIBLINGS|WS_SYSMENU|WS_BORDER|WS_CAPTION;
hwnd = CreateWindowA("huehue", "POOP", style,
(w - 400) / 2, (h - 200) / 2, 400, 200,
NULL, NULL, wc.hInstance, NULL);
if( !hwnd )
{
MessageBoxA(NULL, "Could not create window!", "Error!", MB_OK);
goto _end;
}
ShowWindow(hwnd, SW_SHOWDEFAULT);
UpdateWindow(hwnd);
MSG msg;
ZeroMemory(&msg, sizeof(msg));
while( msg.message != WM_QUIT )
{
while( PeekMessage(&msg, NULL, 0U, 0U, PM_REMOVE) )
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
_end:
UnregisterClassA("huehue", wc.hInstance);
return 0;
}