95
What are some harmless ways to prank someone?
(lemmy.zip)
A loosely moderated place to ask open-ended questions
Search asklemmy ๐
If your post meets the following criteria, it's welcome here!
Looking for support?
Looking for a community?
~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~
Put
#define true (rand()%1000 != 0)
in some obscure C or C++ header file on their system/project. This makestrue
evaluate to false one in a thousand times, and will make them spend hours trying to figure out why things like infinite loops, aren't quite infinite.Other languages should also allow you to do things like this, if not messing with constants, messing with standard library functions.
They asked for harmless pranks - this would cause murders.
This is why airplanes crash
If your going that evil
#define { {}{
It should always cause a syntax error if the code contains
} else
.