La Bombe !

Pour tout ce qui ne touche ni à Rayman, ni à la communauté.
DesLife
Foutch
Posts: 19946
Joined: Sat Jun 12, 2004 12:42 pm
Tings: 186263

Re: La Bombe !

Post by DesLife »

2719 ! :fou2:
Tenderz
Mechanical Dragon
Posts: 2170
Joined: Sat Jul 03, 2010 4:35 pm
Location: Unknown
Contact:
Tings: 26977

Re: La Bombe !

Post by Tenderz »

2720 :mefiant:
LoveMetal
André
Posts: 15108
Joined: Fri Oct 09, 2009 6:11 pm
Tings: 225055

Re: La Bombe !

Post 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;
}
Matyuv
Gangsta Globox
Posts: 21362
Joined: Thu Apr 29, 2004 10:22 am
Tings: 54431

Re: La Bombe !

Post by Matyuv »

2722 :lol:
LoveMetal
André
Posts: 15108
Joined: Fri Oct 09, 2009 6:11 pm
Tings: 225055

Re: La Bombe !

Post 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:
DesLife
Foutch
Posts: 19946
Joined: Sat Jun 12, 2004 12:42 pm
Tings: 186263

Re: La Bombe !

Post 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:
Haruka
Ly
Posts: 26769
Joined: Sun Aug 10, 2008 9:19 pm
Contact:
Tings: 200220

Re: La Bombe !

Post by Haruka »

Désolé de vous interrompre, mais comment ce jeu? :oops2:
Itooh
Carmen
Posts: 3057
Joined: Fri Mar 20, 2009 8:33 pm
Location: Perdu, quelque part dans le Grand Raccourci... >< Help !
Tings: 41812

Re: La Bombe !

Post 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.
DesLife
Foutch
Posts: 19946
Joined: Sat Jun 12, 2004 12:42 pm
Tings: 186263

Re: La Bombe !

Post 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 !
LoveMetal
André
Posts: 15108
Joined: Fri Oct 09, 2009 6:11 pm
Tings: 225055

Re: La Bombe !

Post 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 !
DesLife
Foutch
Posts: 19946
Joined: Sat Jun 12, 2004 12:42 pm
Tings: 186263

Re: La Bombe !

Post by DesLife »

En tout cas, il ne compte pas jusqu') 2727. :pascontent:
LoveMetal
André
Posts: 15108
Joined: Fri Oct 09, 2009 6:11 pm
Tings: 225055

Re: La Bombe !

Post 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
Rayray1994
Lamasticot
Posts: 7182
Joined: Tue Sep 25, 2007 12:41 pm
Location: 43°4018N;03°6966E
Contact:
Tings: 78952

Re: La Bombe !

Post by Rayray1994 »

2729
Comment tu vas faire pour donner 100 tings?
LoveMetal
André
Posts: 15108
Joined: Fri Oct 09, 2009 6:11 pm
Tings: 225055

Re: La Bombe !

Post 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:
DesLife
Foutch
Posts: 19946
Joined: Sat Jun 12, 2004 12:42 pm
Tings: 186263

Re: La Bombe !

Post 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;
LoveMetal
André
Posts: 15108
Joined: Fri Oct 09, 2009 6:11 pm
Tings: 225055

Re: La Bombe !

Post 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) :( :)
DesLife
Foutch
Posts: 19946
Joined: Sat Jun 12, 2004 12:42 pm
Tings: 186263

Re: La Bombe !

Post 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:
LoveMetal
André
Posts: 15108
Joined: Fri Oct 09, 2009 6:11 pm
Tings: 225055

Re: La Bombe !

Post 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
DesLife
Foutch
Posts: 19946
Joined: Sat Jun 12, 2004 12:42 pm
Tings: 186263

Re: La Bombe !

Post by DesLife »

C'est le langage Maple, un logiciel de calcul formel.
2735 !
MLII
Carmen
Posts: 8064
Joined: Sat Jan 03, 2009 10:48 pm
Location: therapist to the royal bees
Tings: 43075

Re: La Bombe !

Post by MLII »

Bonjour français le forum! 8D

2736~
Post Reply