Open LiEnby opened 5 years ago
#define please std::cout
#define arrest "arrest me"
#define me std::endl
#define forever for (;;)
int main()
{
forever {
please << arrest << me;
}
return 0;
}
You forgot the loop
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;
}
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
@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
You guys missed Python 3
while(True):
tkMessageBox.showinfo("Illegal", "Arrest me plz")
Unity 5+
while(True) {
Debug.Log("Arrest Me Plz");
};
#include <stdio.h>
int main() {
while (true) {
printf("I want to be arrested\n");
}
return 0;
}
JS
C#
Batch
Python2.7
GameMaker
VBS