Page 108 of 190

Re: La Bombe !

Posted: Sun Jan 30, 2011 2:12 am
by DesLife
2719 ! :fou2:

Re: La Bombe !

Posted: Sun Jan 30, 2011 10:12 am
by Tenderz
2720 :mefiant:

Re: La Bombe !

Posted: Sun Jan 30, 2011 11:46 am
by LoveMetal

Code: Select all

#include <stdio.h>
#include <stdlib.h>


int main(int argc, char *argv[])
{
    int DesLife_is_great = 1;
    long Nombre = 2721;

    if (DesLife_is_great)
        printf("%d", Nombre);
    return 0;
}

Re: La Bombe !

Posted: Sun Jan 30, 2011 11:48 am
by Matyuv
2722 :lol:

Re: La Bombe !

Posted: Sun Jan 30, 2011 12:45 pm
by LoveMetal

Code: Select all

#include <stdio.h>
#include <stdlib.h>


int main(int argc, char *argv[])
{
    int Matyuv_was_not_awesome = 1, Llamagot_sucks = 0;
    long Nombre = 2723;

    if (!Matyuv_was_not_awesome | (Llamagot_sucks))
        printf("Fail");
    else
        printf("%d", Nombre);
    return 0;
}
:mrgreen:

Re: La Bombe !

Posted: Sun Jan 30, 2011 1:03 pm
by DesLife

Code: Select all

#include <stdio.h>
#include <stdlib.h>


int main(int argc, char *argv[])
{
    int DesLife_is_great = 1;
    long Nombre = 2724;

    if (DesLife_is_great)
        printf("%d", Nombre);
    return 0;
}
:proud:

Re: La Bombe !

Posted: Sun Jan 30, 2011 1:26 pm
by Haruka
Désolé de vous interrompre, mais comment ce jeu? :oops2:

Re: La Bombe !

Posted: Sun Jan 30, 2011 1:47 pm
by Itooh
Faut compter, stou. :P
Image

Sinon, Java powa :

Code: Select all

package labombe;
import java.lang.*;

public void main (String[] args) {
    try {
        int i = 0;
        boolean underNineThousand;
        while (i < 2725) {
            i++;
            if (i < 9000)
                underNineThousand = true;
            else
                underNineThousand = false;
        }
        if (underNineThousand)
            System.out.println(i + " ! :3");
        else {
            System.out.println(i + "\n" + "La prophétie de DesLife était donc vraie ! La fin du monde est proche !");
            throw new RuntimeException();
        }
    }
    catch (Exception e) {
        System.out.println(e.getMessage() + "Putain, encore une exception ! Langage à la con ! ><")
    }
}
C'est tout de suite plus simple, hein ? :p
Et encore, il manque la javadoc.

Re: La Bombe !

Posted: Sun Jan 30, 2011 2:02 pm
by DesLife
Haruka wrote:Désolé de vous interrompre, mais comment joue-t-on à ce jeu? :oops2:
Il faut compter, mais comme c'est stupide, on le fait de manière plus élaborée ! Avec des formules mathématiques, des images ou des programmes informatiques par exemple !

2726 !

Re: La Bombe !

Posted: Sun Jan 30, 2011 2:05 pm
by LoveMetal
Rhà, c'est chiant comme c'est pas permis le java (le javascript l'est tout autant au passage ^^) ! Le C++ c'est mieux :mrgreen:
DesLife wrote:

Code: Select all

#include <stdio.h>
#include <stdlib.h>


int main(int argc, char *argv[])
{
    int DesLife_is_great = 1;
    long Nombre = 2724;

    if (DesLife_is_great)
        printf("%d", Nombre);
    return 0;
}
:proud:
Eh, piqueur de kaude ! Au bûcher !!!

Allez, un beau avec la SDL, SDL_image et fmodex :mrgreen: :
  • Soit "background.bmp" un beau fond d'écran en l'honneur du Grand Caca Volant
  • Soit "image.png" un écriteau avec marqué DesLife is orsum ! Insurection ! 2727 !
  • Soit "lamasticot.mp3" cette musique
  • Soient inclus les libs SDL, SDL_images et fmodex

Code: Select all

#include <stdlib.h>
#include <stdio.h>
#include <SDL/SDL.h>
#include <SDL/SDL_image.h>
#include <fmodex/fmod.h>

int main(int argc, char *argv[])
{
    FMOD_SOUND *theme = NULL;
    FMOD_SYSTEM *system;
    SDL_Surface *ecran = NULL, *background = NULL, *image = NULL;
    SDL_Rect positionFond, positionImage;
    int tempsPrecedent = 0, tempsActuel = 0;

    FMOD_System_Create(&system);
    FMOD_System_Init(system, 2, FMOD_INIT_NORMAL, NULL);

    positionFond.x = 0;
    positionFond.y = 0;
    positionImage.x = 150;
    positionImage.y = -25;

    FMOD_System_CreateSound(system, "lamasticot.mp3", FMOD_SOFTWARE | FMOD_2D | FMOD_CREATESTREAM | FMOD_LOOP_NORMAL, 0, &theme);
    FMOD_Sound_SetLoopCount(theme, -1);

    FMOD_System_PlaySound(system, FMOD_CHANNEL_FREE, theme, 0, NULL);


    SDL_Init(SDL_INIT_VIDEO);

    SDL_WM_SetIcon(IMG_Load("icone.png"), NULL);
    ecran = SDL_SetVideoMode(800, 600, 32, SDL_FULLSCREEN | SDL_DOUBLEBUF | SDL_RESIZABLE);
    SDL_WM_SetCaption("Lovy est un dieu", NULL);

    background = IMG_Load("background.bmp");
    SDL_BlitSurface(background, NULL, ecran, &positionFond);

    image = IMG_Load("image.png");
    SDL_BlitSurface(image, NULL, ecran, &positionImage);


    int continuer = 1;
    SDL_Event event;
    SDL_EnableKeyRepeat(10, 10);

    while (continuer)
    {

        tempsActuel = SDL_GetTicks();

        SDL_PollEvent(&event);
        switch(event.type)
        {
            case SDL_QUIT:
                continuer = 0;
                break;

            case SDL_MOUSEBUTTONUP:
                if (event.button.button == SDL_BUTTON_LEFT)
                {
                    if (event.button.x > 703 & event.button.x < 785 & event.button.y > 9 & event.button.y < 83)
                        continuer = 0;
                    else
                    {
                    positionImage.x = event.button.x;
                    positionImage.y = event.button.y;
                    }
                }
                break;

        }
        if (tempsActuel - tempsPrecedent > 30)
        {
            positionImage.x++;
            tempsPrecedent = tempsActuel;
        }
        SDL_BlitSurface(background, NULL, ecran, &positionFond);
        SDL_BlitSurface(image, NULL, ecran, &positionImage);

        SDL_Flip(ecran);
    }
    FMOD_Sound_Release(theme);
    FMOD_System_Close(system);
    FMOD_System_Release(system);

    SDL_FreeSurface(background);
    SDL_FreeSurface(image);
    SDL_Quit();

    return EXIT_SUCCESS;
}

Le premier qui trouve ce que fait ce code gagne 100 tings !

Re: La Bombe !

Posted: Sun Jan 30, 2011 5:27 pm
by DesLife
En tout cas, il ne compte pas jusqu') 2727. :pascontent:

Re: La Bombe !

Posted: Sun Jan 30, 2011 5:53 pm
by LoveMetal
Si, en tous cas il affiche 2727 :
LOVΣ_MΞTΛL wrote:Soit "image.png" un écriteau avec marqué DesLife is orsum ! Insurection ! 2727 !
2728

Re: La Bombe !

Posted: Mon Jan 31, 2011 11:28 am
by Rayray1994
2729
Comment tu vas faire pour donner 100 tings?

Re: La Bombe !

Posted: Mon Jan 31, 2011 5:38 pm
by LoveMetal
2730
Une promesse est une promesse, j'ai dit que je donnerais des tings à celui qui trouvera ce que fait ce code je les donnerais. Tu me sous estimes, Rayray... :tssk:

Re: La Bombe !

Posted: Mon Jan 31, 2011 6:25 pm
by DesLife
Il devait sûrement avoir des tings sur son compte Crésus.

m:=0: for i from 1 to 2731 do m:=m+1: od: m;

Re: La Bombe !

Posted: Mon Jan 31, 2011 6:33 pm
by LoveMetal
DesLife wrote:Il devait sûrement avoir des tings sur son compte Crésus.
Tu es perspicace, ma grande :mrgreen:
DesLife wrote:m:=0: for i from 1 to 2730 do m:=m+1: od: m;
C'est quoi ça ? Une matrice ?
:) 8) :( :)

Re: La Bombe !

Posted: Mon Jan 31, 2011 6:36 pm
by DesLife
LOVΣ_MΞTΛL wrote:
DesLife wrote:m:=0: for i from 1 to 2730 do m:=m+1: od: m;
C'est quoi ça ? Une matrice ?
AHAHAHAHAHAHAHAHAHAHAHAHAHAH ! ET TU DIS QUE TU SAIS PROGRAMMER ?!!!11 :lol: :lol: :lol: Que tu saches pas ce qu'est une matrice, je conçois, mais que tu saches pas ce qu'est une somme ! Ahahahahahahah ! :lol:
2733 ! :lol:

Re: La Bombe !

Posted: Mon Jan 31, 2011 6:46 pm
by LoveMetal
Je capte ce que ça fait, ça ressemble vaguement au C/C++ , mais c'est quoi le putain de langage que t'utilise ?
2734

Re: La Bombe !

Posted: Mon Jan 31, 2011 6:50 pm
by DesLife
C'est le langage Maple, un logiciel de calcul formel.
2735 !

Re: La Bombe !

Posted: Mon Jan 31, 2011 6:55 pm
by MLII
Bonjour français le forum! 8D

2736~