Too Cool for Internet Explorer


Swobodin's Profile | Swobodin's Blog | Back to Fedora Tunisia

aid_mabruk.c

Received this SMS from Hussemus:
#include <life.h>
#define AID_MABROUK 1
int main(int argc, char *argv[]) {
int happiness = 0;
while (happiness < MAX_INT) {
happiness++;
}
return AID_MABROUK;
}

The code, however needs to be patched, since MAX_INT is undefined, and a compilation error may occur!

Related posts

(sometimes, the plugin foolishes)
Chess is confusing me
Murphy programming laws
Snipper
Switching keyboard
Google loves me

Technorati tags

4 Responses to “aid_mabruk.c”

  1. tom Says:

    heh, nice way to check your blog :P

    Anyway, you can patch this pgm by deleting simply the while loop :P

    looool, this follow the “why do it simple when you can do it hard” cite :P

  2. Swobodin Says:

    it would be:
    int happiness = 1;
    while (happiness > 0) {
    happiness++;
    }
    Thanks for the help :-)

  3. Imed Chihi Says:

    Salam,

    There’s a MAXINT defined in , and you can do it even harder:

    happiness=1;
    while (happiness++-MAXINT)

    :)

    -Imed

  4. Swobodin Says:

    Thanks Imed, I will submit your patch :-D

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

 
 

This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

You must read and type the 5 chars within 0..9 and A..F, and submit the form.

  

Oh no, I cannot read this. Please, generate a


Top Tunisie Blogs