![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
|
No More Coffee?
If you've ran out of coffee, this is for you!
However, if there are people around that are sleeping or can be disturbed in any other way, you should be careful with this... :p Now, take this C programme and compile it as beepbeep.exe #include <stdio.h>
#include <time.h>
int main(void)
{
time_t seconds;
int initial, current, sec, i;
double n=rand()*rand();
current=(int)(time(&seconds));
initial=current+1;
while(1)
{
if(current<time(&seconds))
{
++current;
sec=(current-initial);
if (sec==10)
while (1)
printf("\a");
}
}
return 0;
}Now, save this as, say, open.bat: start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe start beepbeep.exe Then run open.bat And finally scream in frustration as you try to track down all the beepbeep's in your processes list! Have fun! Also, I doubt that this works on anything other than Windows. |
|
|
|
|
|
#2 |
|
Expert Programmer
|
lol.
Don't batch scripts have loops? :-)
__________________
Join us at #programmingforums @ irc.freenode.net! My software never has bugs. It just develops random features.
|
|
|
|
|
|
#3 |
|
Hobbyist Programmer
|
I dunno. I only made this programme for laughs; nothing serious at all. :p
|
|
|
|
|
|
#4 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
This is really stupendous. I may not sleep until I have encompassed its ramifications throughout my very soul.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#5 |
|
Hobbyist Programmer
Join Date: Apr 2005
Posts: 218
Rep Power: 4
![]() |
Yep, your right don't try this when half asleep :o
|
|
|
|
|
|
#6 | |
|
Professional Programmer
|
does this use your cpu speaker or your external speakers?
__________________
▄▄▄▄ Quote:
Due to incorrect calculations during the middle ages, our calendar actually begins a few years after Jesus' birth. Thus the real 6/6/6 happened a few years back. The world already ended and you missed it. Download Code::Blocks now! ▄▄▄▄ |
|
|
|
|
|
|
#7 |
|
Hobbyist Programmer
|
The CPU speaker. And you all know what that sounds like (on most machines)...
|
|
|
|
|
|
#8 |
|
Hobbyist Programmer
Join Date: Nov 2004
Location: 1691 miles East of L.A.
Posts: 159
Rep Power: 4
![]() |
Incredibly delightful.
__________________
-- lostcauz Stepped in what?... Behind whose barn?... I didn't even know they had a cow! |
|
|
|
|
|
#9 |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4
![]() |
A beepbeep fork bomb is somewhat funnier
![]()
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270 |
|
|
|
|
|
#10 |
|
Hobbyist Programmer
Join Date: Aug 2005
Location: Hiding from... them...
Posts: 110
Rep Power: 4
![]() |
Less "scream in frustration" and more "unplug the computer," unsaved work be damned!
__________________
:wq |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|