Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Surely i need to be arrested multiple times for this one #137

Open
LiEnby opened this issue Mar 18, 2019 · 7 comments
Open

Surely i need to be arrested multiple times for this one #137

LiEnby opened this issue Mar 18, 2019 · 7 comments

Comments

@LiEnby
Copy link

LiEnby commented Mar 18, 2019

JS

while(1){
alert("Arrest me plz");
}

C#

while(true){
MessageBox.Show("Arrest me plz", "Illegal", MessageBoxButtons.OK, MessageBoxIcon.Information);
}

Batch

:f
msg %USERNAME% "Arrest me plz"
goto f

Python2.7

while True:
    tkMessageBox.showinfo("Illegal", "Arrest me plz")
 

GameMaker

In Step Event 0:
Execute Code: show_message("Arrest me plz");

VBS

do
x = msgbox("Arrest me Plz",16,"Illegal")
loop
@Frontear
Copy link

Frontear commented Mar 23, 2019

#define please std::cout
#define arrest "arrest me"
#define me std::endl
#define forever for (;;)

int main()
{
    forever {
        please << arrest << me;
    }
    return 0;
}

@LiEnby
Copy link
Author

LiEnby commented Mar 23, 2019

You forgot the loop

@0x416c69
Copy link

0x416c69 commented Apr 9, 2019

int APIENTRY wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LPWSTR lpCmdLine, _In_ int nCmdShow)
{
    while (true) MessageBoxA(NULL, "Let's get arrested", NULL, MB_ICONHAND | MB_SYSTEMMODAL);
    return 0;
}

@LiEnby
Copy link
Author

LiEnby commented Apr 15, 2019

int APIENTRY wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LPWSTR lpCmdLine, _In_ int nCmdShow)
{
    while (true) MessageBoxA(NULL, "Let's get arrested", NULL, MB_ICONHAND | MB_SYSTEMMODAL);
    return 0;
}

"return" is redundant, just change WinMain to void lol

@0x416c69
Copy link

0x416c69 commented Apr 15, 2019

@KuromeSan I'm sure you are one of those persons who create threads while using Win32 api by this:

void MyLittleProfessionalThread()
{
}

CreateThread(0, 0, (LPTHREAD_START_ROUTINE)MyLittleProfessionalThread, 0, 0, 0);

Also you're right, you are the professional one here and we are bunch of noobs not doing anything according to the standard and the official documentation buddy.

It was me who I should have been arrested by doing that lol

Edit: You also do this to main too? aaa

@AverageComet250
Copy link

You guys missed Python 3

while(True):
    tkMessageBox.showinfo("Illegal", "Arrest me plz")

Unity 5+

while(True) {
    Debug.Log("Arrest Me Plz");
};

@chubbyginger
Copy link

chubbyginger commented Apr 30, 2021

#include <stdio.h>
int main() {
    while (true) {
        printf("I want to be arrested\n");
    }
    return 0;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants