[HowTo] Annoy in 10 lines C++

Questions about programming languages and debugging
Post Reply
User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

[HowTo] Annoy in 10 lines C++

Post by ayu »

Shortest headache generator ever ^^

Code: Select all

#include <iostream>

using namespace std;

int main()
{
	while(1)
		cout<<"\a";
	return 0;
}
"The best place to hide a tree, is in a forest"

G-Brain
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 467
Joined: 08 Nov 2007, 17:00
16
Location: NL

Post by G-Brain »

Ah, the audible bell. First thing I turn off when setting up a new machine :P


Perl one-liner:

Code: Select all

perl -e 'print "\a" while(1)'
I <3 MariaLara more than all of you

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Post by ayu »

hah yeah, took it out of the other computer when I realized how damn annoying it is when you "accidentally" fall into a loop :roll:
"The best place to hide a tree, is in a forest"

Post Reply