Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-

[Linker error] undefined reference to

Name: Aku 2009-01-03 15:51

#ifndef RPKEIK_H
#define RPKEIK_H

#include <cstdlib>
#include <iostream>
#include <string>


//using namespace std ;

class RPKeik
{
    public :
    RPKeik() ;
    ~RPKeik() ;
    void ChoixJoueur1() ;
    void ChoixJoueur2() ;
    void Combat() ;
   
    private :
    int Joueur1 ;
    int Joueur2 ;
   
    string NomJoueur1 ;
    int VieJoueur1 ;
    int AttaqueJoueur1 ;
    string NomAttaque1Joueur1 ;
    int Attaque1Joueur1 ;
    string NomAttaque2Joueur1 ;
    int Attaque2Joueur1 ;
   
    string NomJoueur2 ;
    int VieJoueur2 ;
    int AttaqueJoueur2 ;
    string NomAttaque1Joueur2 ;
    int Attaque1Joueur2 ;
    string NomAttaque2Joueur2 ;
    int Attaque2Joueur2 ;
} ;

RPKeik Joueur12 ;

void RPKeik::ChoixJoueur1()
{
    cin >> Joueur1 ;
    switch (Joueur1)
    {
           case 1 : this->NomJoueur1="Sorel" ;
                    this->NomAttaque1Joueur1="1, 2, 3 Sorel" ;
                    this->Attaque1Joueur1=50 ;
                    this->NomAttaque2Joueur1="Sorel & Hardy" ;
                    this->Attaque2Joueur1=60 ;
           break ;
           case 2 : this->NomJoueur1="Pikachu" ;
                    this->NomAttaque1Joueur1="Tonnerre" ;
                    this->Attaque1Joueur1=50 ;
                    this->NomAttaque2Joueur1="Vive-Attaque" ;
                    this->Attaque2Joueur1=60 ;
           break ;
           case 3 : this->NomJoueur1="Vegeta" ;
                    this->NomAttaque1Joueur1="Final Flash" ;
                    this->Attaque1Joueur1=50 ;
                    this->NomAttaque2Joueur1="It's over 9000 !!!" ;
                    this->Attaque2Joueur1=60 ;
           break ;
           case 4 : this->NomJoueur1="Mario" ;
                    this->NomAttaque1Joueur1="Saut" ;
                    this->Attaque1Joueur1=50 ;
                    this->NomAttaque2Joueur1="Marteau" ;
                    this->Attaque2Joueur1=60 ;
           break ;
           case 5 : this->NomJoueur1="Ryu" ;
                    this->NomAttaque1Joueur1="Hado Ken" ;
                    this->Attaque1Joueur1=50 ;
                    this->NomAttaque2Joueur1="Sho Ryu Ken" ;
                    this->Attaque2Joueur1=60 ;
           break ;
           case 6 : this->NomJoueur1="Captain Falcon" ;
                    this->NomAttaque1Joueur1="Falcon Punch" ;
                    this->Attaque1Joueur1=50 ;
                    this->NomAttaque2Joueur1="Falcon Kick" ;
                    this->Attaque2Joueur1=60 ;
           break ;
           case 7 : this->NomJoueur1="Dark_Vador" ;
                    this->NomAttaque1Joueur1="Je suis ton père" ;
                    this->Attaque1Joueur1=50 ;
                    this->NomAttaque2Joueur1="Sabre Laser" ;
                    this->Attaque2Joueur1=60 ;
           break ;
           case 8 : this->NomJoueur1="Windows" ;
                    this->NomAttaque1Joueur1="BSOD" ;
                    this->Attaque1Joueur1=50 ;
                    this->NomAttaque2Joueur1="Bug" ;
                    this->Attaque2Joueur1=60 ;
           break ;
           case 9 : this->NomJoueur1="Joker" ;
                    this->NomAttaque1Joueur1="Pencil Trick" ;
                    this->Attaque1Joueur1=50 ;
                    this->NomAttaque2Joueur1="Why so serious ?" ;
                    this->Attaque2Joueur1=60 ;
           break ;
           case 10 : this->NomJoueur1="Leonidas" ;
                    this->NomAttaque1Joueur1="This is Sparta !" ;
                    this->Attaque1Joueur1=50 ;
                    this->NomAttaque2Joueur1="We dine on hell !" ;
                    this->Attaque2Joueur1=60 ;
           break ;
           default : cout << "Veuillez selectionner un personnage existant !" << endl ;
           break ;
    }


void RPKeik::ChoixJoueur2()
{
    cin >> Joueur2 ;
    switch (Joueur2)
    {
           case 1 : this->NomJoueur2="Sorel" ;
                    this->NomAttaque1Joueur2="1, 2, 3 Sorel" ;
                    this->Attaque1Joueur2=50 ;
                    this->NomAttaque2Joueur2="Sorel & Hardy" ;
                    this->Attaque2Joueur2=60 ;
           break ;
           case 2 : this->NomJoueur2="Pikachu" ;
                    this->NomAttaque1Joueur2="Tonnerre" ;
                    this->Attaque1Joueur2=50 ;
                    this->NomAttaque2Joueur2="Vive-Attaque" ;
                    this->Attaque2Joueur2=60 ;
           break ;
           case 3 : this->NomJoueur2="Vegeta" ;
                    this->NomAttaque1Joueur2="Final Flash" ;
                    this->Attaque1Joueur2=50 ;
                    this->NomAttaque2Joueur2="It's over 9000 !!!" ;
                    this->Attaque2Joueur2=60 ;
           break ;
           case 4 : this->NomJoueur2="Mario" ;
                    this->NomAttaque1Joueur2="Saut" ;
                    this->Attaque1Joueur2=50 ;
                    this->NomAttaque2Joueur2="Marteau" ;
                    this->Attaque2Joueur2=60 ;
           break ;
           case 5 : this->NomJoueur2="Ryu" ;
                    this->NomAttaque1Joueur2="Hado Ken" ;
                    this->Attaque1Joueur2=50 ;
                    this->NomAttaque2Joueur2="Sho Ryu Ken" ;
                    this->Attaque2Joueur2=60 ;
           break ;
           case 6 : this->NomJoueur2="Captain Falcon" ;
                    this->NomAttaque1Joueur1="Falcon Punch" ;
                    this->Attaque1Joueur2=50 ;
                    this->NomAttaque2Joueur2="Falcon Kick" ;
                    this->Attaque2Joueur2=60 ;
           break ;
           case 7 : this->NomJoueur2="Dark_Vador" ;
                    this->NomAttaque1Joueur2="Je suis ton père" ;
                    this->Attaque1Joueur2=50 ;
                    this->NomAttaque2Joueur2="Sabre Laser" ;
                    this->Attaque2Joueur2=60 ;
           break ;
           case 8 : this->NomJoueur2="Windows" ;
                    this->NomAttaque1Joueur2="BSOD" ;
                    this->Attaque1Joueur2=50 ;
                    this->NomAttaque2Joueur2="Bug" ;
                    this->Attaque2Joueur2=60 ;
           break ;
           case 9 : this->NomJoueur2="Joker" ;
                    this->NomAttaque1Joueur2="Pencil Trick" ;
                    this->Attaque1Joueur2=50 ;
                    this->NomAttaque2Joueur2="Why so serious ?" ;
                    this->Attaque2Joueur2=60 ;
           break ;
           case 10 : this->NomJoueur2="Leonidas" ;
                     this->NomAttaque1Joueur2="This is Sparta !" ;
                     this->Attaque1Joueur2=50 ;
                     this->NomAttaque2Joueur2="We dine on hell !" ;
                     this->Attaque2Joueur2=60 ;
           break ;
           default : cout << "Veuillez selectionner un personnage existant !" << endl ;
           break ;
    }
}

void RPKeik::Combat()
{
     do
     {
         cout << "Joueur1 : " << NomJoueur1 << "choisissez une attaque : " << endl << "1." << NomAttaque1Joueur1 << endl << "2." << NomAttaque2Joueur1 << endl ;
         cin >> this->AttaqueJoueur1 ;
         switch (this->AttaqueJoueur1)
         {
                case 1 : cout << NomJoueur1 << " lance " << NomAttaque1Joueur1 << endl ;
                         this->VieJoueur2 = this->VieJoueur2 - this->Attaque1Joueur1 ;                    
                break ;
                case 2 : cout << NomJoueur1 << " lance " << NomAttaque2Joueur1 << endl ;
                         this->VieJoueur2 = this->VieJoueur2 - this->Attaque2Joueur1 ;
                break ;
         }
         cout << NomJoueur2 << " a " << this->VieJoueur2 << " de vie " << endl << endl ;
        
         if (this->VieJoueur2 != 0)
         {
             cout << "Joueur2 : " << NomJoueur2 << "choisissez une attaque : " << endl << "1." << NomAttaque1Joueur2 << endl << "2." << NomAttaque2Joueur2 << endl ;
             cin >> this->AttaqueJoueur2 ;
             switch (this->AttaqueJoueur2)
             {
                    case 1 : cout << NomJoueur2 << " lance " << NomAttaque1Joueur2 << endl ;
                             this->VieJoueur1 = this->VieJoueur1 - this->Attaque1Joueur2 ;                     
                    break ;
                    case 2 : cout << NomJoueur2 << " lance " << NomAttaque2Joueur2 << endl ;
                             this->VieJoueur1 = this->VieJoueur1 - this->Attaque2Joueur2 ;
                    break ;
             }
             cout << NomJoueur1 << " a " << this->VieJoueur1 << " de vie " << endl ;
         }
     }
     while (!(this->VieJoueur1 == 0 || this->VieJoueur2 == 0)) ;
    
     if ( this->VieJoueur2 <= 0 )
     {
          cout << "Joueur 1 a gagné !" << endl ;
     }
     else
     {
         cout << "Joueur 2 a gagné !" << endl ;
     }
}

#endif

--------



Errors :
  [Linker error] undefined reference to `RPKeik::RPKeik()'
  [Linker error] undefined reference to `RPKeik::~RPKeik()'

What can I do to fix this ?

Name: Anonymous 2009-01-03 15:55

implement constructor and destructor

Name: Anonymous 2009-01-03 15:57

implement english language

Name: Anonymous 2009-01-03 15:59

implement icelandic language

Name: Anonymous 2009-01-03 16:00

Like this ? :

RPKeik::RPKeik()
{
}

RPKeik::~RPKeik()
{
}

Because it doesn't fix anything. :/

anon : I can only use French.

Name: Anonymous 2009-01-03 16:09

just tried it+ the fix in >>5 out with g++, worked fine nyoro~n

Name: Anonymous 2009-01-03 16:13

 \/: /: : : /: /: : : : : : /: /: : |: : : : l: : : ヽ}   \
  /: /: : : /: / : : : : :://://: :∧ : : : :|: : : : |     〉
 l: |: : :  |: /: : : : :/ /" /: :/  \: : :.|: : : : |   /      
MAKE
 |: :ハ: : : |: |二ニ==ェニフ´   /, へ、____>':「: |: : : レ'            
THE
 ヽ:|∧: : |: |く/フこ^ヽ\ /   / _ェ‐‐、=、`|: : |: : l: :|             
DIRTY
  ∧ヘ: : |/ |r^{:::}゚ |  "      |^{;:::}r^} 〉 |: :/: : l: :|            
THREAD
  /: : |\: |ヽ >ー‐'        ヾ_こ_ソ  /:/: : :/ /|               
GO
 / : : {. \ヽ :::::::     ヽ     `ー―' /イ: :/ /: |              
AWAY!
./: : : ∧  ト >   , へ、___   :::::/ /: ///: l: |
 : : : i^ヽ *\    / /´    :::::ヽ    // ノ/: : l: |
 : : /レ⌒ヽ、.  ヽ、 ヽ、_     :::ノ  , イァー‐く`¬ : l::|
 : / / / ,へ. l| ` 、    ̄ ̄ ̄, ' rーく \.  |` ト、:.l::l
 ::/ .| '  / /ヽ|    >= ァ  ̄  /^ヽ  ` ヽ. | 〈 ヽ::|
: /  |       / |  /⌒/L「\.   |       ./ /  | |

Name: Anonymous 2009-01-03 16:27

"GRUNNUR"

Name: Anonymous 2009-01-03 16:27

I raged so hard at this shit, holy FUCK.

this->NomAttaque2Joueur1="It's over 9000 !!!" ;
ahahah epic win so randum
case 7 : this->NomJoueur1="Dark_Vador" ;
DARK VADOR?
this->NomAttaque2Joueur1="Why so serious ?" ;
this->NomAttaque2Joueur1="We dine on hell !" ;

Holy penis I hate you.

Name: Anonymous 2009-01-03 16:32

toi aussi code un rpg avec le site du zero! (lol)
nan mais sérieusement avant de taper des dizaines de lignes de persos et leur caractéristiques vérifie que la base marche, parce que la ça donne vraiment pas envie d'aider (surtout que c'est écrit en français...)

Name: Anonymous 2009-01-03 16:36

>>9
Who cares about that, these concerns are more important:
1. Sepples
2. Lots of C&P
3. Good old OOP misuse
4. Code in a header?

Name: Anonymous 2009-01-03 16:37

Best thread in weeks. Please post the final game code so I can play it.

Name: Anonymous 2009-01-03 16:40

haxez mon anus

Name: Anonymous 2009-01-03 16:52

>>11
4. Code in a header?

Oh god I just assumed he forgot to mention it switched to the .cpp after a while (and didn't paste the #include "rpkeik.h"). I am sickened.

Name: Anonymous 2009-01-03 16:52

>>13
Anus wurde gehaxt

Name: Anonymous 2009-01-03 17:38

>>10
Ah mais la base marchait, c'est quand j'ai voulu transférer mes fonctions en méthode que ça a merdait. Et je comprends que ça ne donne pas envi d'aider, mais bon si tu as des conseils, je suis preneur.

>>11
Sepples ? C&P ? OOP ? I don't know, I'm a noob. :/

>>12
I'll post the game.

Name: Anonymous 2009-01-03 17:40

I didn't forget to paste #include "rpkeik.h" in the cpp.

Name: Anonymous 2009-01-03 17:55

>>6
J'ai pas compris ce que tu voulais dire par "transférer mes fonctions en méthodes" ou plutôt j'ai peur de comprendre :/
j'veux dire par là que si tu code en POO tu doit penser POO.
sinon désolé mais je peux pas t'aider plus, en langage orienté objet je n'ai touché qu'au C# (1/2 h de C++ ça ne compte pas...)

Name: Anonymous 2009-01-03 17:58

To be honest, I don't know why you're still posting.

Remove everything that isn't a definition in the header, put it in the cpp, implement your constructor and destructor and it'll work fine.

Name: Anonymous 2009-01-03 18:05

Je pense que tu as bien compris, j'ai tout d'abord commencé a faire des méthodes (juste le choix des persos) avant de me rendre compte que les objets me seront bien plus pratiques (même si j'ai encore un peu de mal avec).

Name: Anonymous 2009-01-03 18:57

I remove everything, 0 error but it doesn't work.

----
#ifndef RPKEIK_H
#define RPKEIK_H

#include <cstdlib>
#include <iostream>
#include <string>


using namespace std ;

class RPKeik
{
    public :
    RPKeik() ;
    ~RPKeik() ;
    void ChoixJoueur1() ;
    void ChoixJoueur2() ;
    void Combat() ;
   
    private :
    int Joueur1 ;
    int Joueur2 ;
   
    string NomJoueur1 ;
    int VieJoueur1 ;
    int AttaqueJoueur1 ;
    string NomAttaque1Joueur1 ;
    int Attaque1Joueur1 ;
    string NomAttaque2Joueur1 ;
    int Attaque2Joueur1 ;
   
    string NomJoueur2 ;
    int VieJoueur2 ;
    int AttaqueJoueur2 ;
    string NomAttaque1Joueur2 ;
    int Attaque1Joueur2 ;
    string NomAttaque2Joueur2 ;
    int Attaque2Joueur2 ;
} ;

RPKeik::RPKeik()
{
    RPKeik Joueur12 ;
    system("cls") ;
    cout << "Joueur 1 choisissez un personnage :" << endl << "1.Sorel" << endl << "2.Pikachu" << endl << "3.Vegeta" << endl << "4.Mario" << endl << "5.Ryu" << endl << "Captain Falcon" << endl << "7.Dark Vador" << endl << "8.Windows" << endl << "9.Joker" << endl << "10.Leonidas" << endl ;
    Joueur12.ChoixJoueur1() ;
    system("cls") ;
    cout << "Joueur 2 choisissez un personnage :" << endl << "1.Sorel" << endl << "2.Pikachu" << endl << "3.Vegeta" << endl << "4.Mario" << endl << "5.Ryu" << endl << "Captain Falcon" << endl << "7.Dark Vador" << endl << "8.Windows" << endl << "9.Joker" << endl << "10.Leonidas" << endl ;
    Joueur12.ChoixJoueur2() ;
    system("cls") ;
    Joueur12.Combat() ;
    system("PAUSE>nul");
}

RPKeik::~RPKeik()
{
}

void RPKeik::ChoixJoueur1()
{
    cin >> Joueur1 ;
    switch (Joueur1)
    {
           case 1 : this->NomJoueur1="Sorel" ;
                    this->NomAttaque1Joueur1="1, 2, 3 Sorel" ;
                    this->Attaque1Joueur1=50 ;
                    this->NomAttaque2Joueur1="Sorel & Hardy" ;
                    this->Attaque2Joueur1=60 ;
           break ;
           case 2 : this->NomJoueur1="Pikachu" ;
                    this->NomAttaque1Joueur1="Tonnerre" ;
                    this->Attaque1Joueur1=50 ;
                    this->NomAttaque2Joueur1="Vive-Attaque" ;
                    this->Attaque2Joueur1=60 ;
           break ;
           case 3 : this->NomJoueur1="Vegeta" ;
                    this->NomAttaque1Joueur1="Final Flash" ;
                    this->Attaque1Joueur1=50 ;
                    this->NomAttaque2Joueur1="It's over 9000 !!!" ;
                    this->Attaque2Joueur1=60 ;
           break ;
           case 4 : this->NomJoueur1="Mario" ;
                    this->NomAttaque1Joueur1="Saut" ;
                    this->Attaque1Joueur1=50 ;
                    this->NomAttaque2Joueur1="Marteau" ;
                    this->Attaque2Joueur1=60 ;
           break ;
           case 5 : this->NomJoueur1="Ryu" ;
                    this->NomAttaque1Joueur1="Hado Ken" ;
                    this->Attaque1Joueur1=50 ;
                    this->NomAttaque2Joueur1="Sho Ryu Ken" ;
                    this->Attaque2Joueur1=60 ;
           break ;
           case 6 : this->NomJoueur1="Captain Falcon" ;
                    this->NomAttaque1Joueur1="Falcon Punch" ;
                    this->Attaque1Joueur1=50 ;
                    this->NomAttaque2Joueur1="Falcon Kick" ;
                    this->Attaque2Joueur1=60 ;
           break ;
           case 7 : this->NomJoueur1="Dark_Vador" ;
                    this->NomAttaque1Joueur1="Je suis ton père" ;
                    this->Attaque1Joueur1=50 ;
                    this->NomAttaque2Joueur1="Sabre Laser" ;
                    this->Attaque2Joueur1=60 ;
           break ;
           case 8 : this->NomJoueur1="Windows" ;
                    this->NomAttaque1Joueur1="BSOD" ;
                    this->Attaque1Joueur1=50 ;
                    this->NomAttaque2Joueur1="Bug" ;
                    this->Attaque2Joueur1=60 ;
           break ;
           case 9 : this->NomJoueur1="Joker" ;
                    this->NomAttaque1Joueur1="Pencil Trick" ;
                    this->Attaque1Joueur1=50 ;
                    this->NomAttaque2Joueur1="Why so serious ?" ;
                    this->Attaque2Joueur1=60 ;
           break ;
           case 10 : this->NomJoueur1="Leonidas" ;
                    this->NomAttaque1Joueur1="This is Sparta !" ;
                    this->Attaque1Joueur1=50 ;
                    this->NomAttaque2Joueur1="We dine on hell !" ;
                    this->Attaque2Joueur1=60 ;
           break ;
           default : cout << "Veuillez selectionner un personnage existant !" << endl ;
           break ;
    }
}

Name: Anonymous 2009-01-03 18:58


void RPKeik::ChoixJoueur2()
{
    cin >> Joueur2 ;
    switch (Joueur2)
    {
           case 1 : this->NomJoueur2="Sorel" ;
                    this->NomAttaque1Joueur2="1, 2, 3 Sorel" ;
                    this->Attaque1Joueur2=50 ;
                    this->NomAttaque2Joueur2="Sorel & Hardy" ;
                    this->Attaque2Joueur2=60 ;
           break ;
           case 2 : this->NomJoueur2="Pikachu" ;
                    this->NomAttaque1Joueur2="Tonnerre" ;
                    this->Attaque1Joueur2=50 ;
                    this->NomAttaque2Joueur2="Vive-Attaque" ;
                    this->Attaque2Joueur2=60 ;
           break ;
           case 3 : this->NomJoueur2="Vegeta" ;
                    this->NomAttaque1Joueur2="Final Flash" ;
                    this->Attaque1Joueur2=50 ;
                    this->NomAttaque2Joueur2="It's over 9000 !!!" ;
                    this->Attaque2Joueur2=60 ;
           break ;
           case 4 : this->NomJoueur2="Mario" ;
                    this->NomAttaque1Joueur2="Saut" ;
                    this->Attaque1Joueur2=50 ;
                    this->NomAttaque2Joueur2="Marteau" ;
                    this->Attaque2Joueur2=60 ;
           break ;
           case 5 : this->NomJoueur2="Ryu" ;
                    this->NomAttaque1Joueur2="Hado Ken" ;
                    this->Attaque1Joueur2=50 ;
                    this->NomAttaque2Joueur2="Sho Ryu Ken" ;
                    this->Attaque2Joueur2=60 ;
           break ;
           case 6 : this->NomJoueur2="Captain Falcon" ;
                    this->NomAttaque1Joueur1="Falcon Punch" ;
                    this->Attaque1Joueur2=50 ;
                    this->NomAttaque2Joueur2="Falcon Kick" ;
                    this->Attaque2Joueur2=60 ;
           break ;
           case 7 : this->NomJoueur2="Dark_Vador" ;
                    this->NomAttaque1Joueur2="Je suis ton père" ;
                    this->Attaque1Joueur2=50 ;
                    this->NomAttaque2Joueur2="Sabre Laser" ;
                    this->Attaque2Joueur2=60 ;
           break ;
           case 8 : this->NomJoueur2="Windows" ;
                    this->NomAttaque1Joueur2="BSOD" ;
                    this->Attaque1Joueur2=50 ;
                    this->NomAttaque2Joueur2="Bug" ;
                    this->Attaque2Joueur2=60 ;
           break ;
           case 9 : this->NomJoueur2="Joker" ;
                    this->NomAttaque1Joueur2="Pencil Trick" ;
                    this->Attaque1Joueur2=50 ;
                    this->NomAttaque2Joueur2="Why so serious ?" ;
                    this->Attaque2Joueur2=60 ;
           break ;
           case 10 : this->NomJoueur2="Leonidas" ;
                     this->NomAttaque1Joueur2="This is Sparta !" ;
                     this->Attaque1Joueur2=50 ;
                     this->NomAttaque2Joueur2="We dine on hell !" ;
                     this->Attaque2Joueur2=60 ;
           break ;
           default : cout << "Veuillez selectionner un personnage existant !" << endl ;
           break ;
    }
}

void RPKeik::Combat()
{
     do
     {
         cout << "Joueur1 : " << NomJoueur1 << "choisissez une attaque : " << endl << "1." << NomAttaque1Joueur1 << endl << "2." << NomAttaque2Joueur1 << endl ;
         cin >> this->AttaqueJoueur1 ;
         switch (this->AttaqueJoueur1)
         {
                case 1 : cout << NomJoueur1 << " lance " << NomAttaque1Joueur1 << endl ;
                         this->VieJoueur2 = this->VieJoueur2 - this->Attaque1Joueur1 ;                    
                break ;
                case 2 : cout << NomJoueur1 << " lance " << NomAttaque2Joueur1 << endl ;
                         this->VieJoueur2 = this->VieJoueur2 - this->Attaque2Joueur1 ;
                break ;
         }
         cout << NomJoueur2 << " a " << this->VieJoueur2 << " de vie " << endl << endl ;
        
         if (this->VieJoueur2 != 0)
         {
             cout << "Joueur2 : " << NomJoueur2 << "choisissez une attaque : " << endl << "1." << NomAttaque1Joueur2 << endl << "2." << NomAttaque2Joueur2 << endl ;
             cin >> this->AttaqueJoueur2 ;
             switch (this->AttaqueJoueur2)
             {
                    case 1 : cout << NomJoueur2 << " lance " << NomAttaque1Joueur2 << endl ;
                             this->VieJoueur1 = this->VieJoueur1 - this->Attaque1Joueur2 ;                     
                    break ;
                    case 2 : cout << NomJoueur2 << " lance " << NomAttaque2Joueur2 << endl ;
                             this->VieJoueur1 = this->VieJoueur1 - this->Attaque2Joueur2 ;
                    break ;
             }
             cout << NomJoueur1 << " a " << this->VieJoueur1 << " de vie " << endl ;
         }
     }
     while (!(this->VieJoueur1 == 0 || this->VieJoueur2 == 0)) ;
    
     if ( this->VieJoueur2 <= 0 )
     {
          cout << "Joueur 1 a gagné !" << endl ;
     }
     else
     {
         cout << "Joueur 2 a gagné !" << endl ;
     }
}

#endif
----

IMO the constructor sucks.

Name: Anonymous 2009-01-03 19:02

Je pense que nous avons été trollés constamment.

Name: Anonymous 2009-01-03 20:40

>>22
RPKeik::RPKeik()
{
    RPKeik Joueur12 ;


Oh come on.  This is clearly a troll.

Name: Anonymous 2009-01-04 0:29

▒▒▒▒▒▒▒▒▒▒<i></i>▒▒▒▒▒▒▒▒▒▒<i></i>▒▒▒▒▒▒▒▒▒<br>
▒▓▓▓▒▒▒▓▒▒<i></i>▒▒▒▓▒▒▓▓▓▓<i></i>▓▒▒▒▓▓▓▓▒<br>
▓▒▒▒▓▒▒▓▒▒<i></i>▒▒▒▓▒▒▓▒▒▒<i></i>▒▒▒▓▒▒▒▒▓<br>
▓▒▒▒▓▒▒▓▒▒<i></i>▒▒▒▓▒▒▓▒▒▒<i></i>▒▒▒▓▒▒▒▒▓<br>
▓▒▒▒▓▒▒▓▒▒<i></i>▒▒▒▓▒▒▓▓▓▓<i></i>▓▒▒▓▓▓▓▓▒<br>
▓▒▒▒▓▒▒▒▓▒<i></i>▒▒▓▒▒▒▓▒▒▒<i></i>▒▒▒▓▒▒▓▒▒<br>
▓▒▒▒▓▒▒▒▒▓<i></i>▒▓▒▒▒▒▓▒▒▒<i></i>▒▒▒▓▒▒▒▓▒<br>
▒▓▓▓▒▒▒▒▒▒<i></i>▓▒▒▒▒▒▓▓▓▓<i></i>▓▒▒▓▒▒▒▒▓<br>
▒▒▒▒▒▒▒▒▒▒<i></i>▒▒▒▒▒▒▒▒▒▒<i></i>▒▒▒▒▒▒▒▒▒<br>
▒▓▓▓▓▒▒▒▒▓<i></i>▓▓▒▒▒▒▓▓▓▒<i></i>▒▒▒▓▓▓▒▒▒<br>
▓▒▒▒▒▓▒▒▓▒<i></i>▒▒▓▒▒▓▒▒▒▓<i></i>▒▒▓▒▒▒▓▒▒<br>
▓▒▒▒▒▓▒▒▓▒<i></i>▒▒▓▒▒▓▒▒▒▓<i></i>▒▒▓▒▒▒▓▒▒<br>
▒▓▓▓▓▒▒▒▓▒<i></i>▒▒▓▒▒▓▒▒▒▓<i></i>▒▒▓▒▒▒▓▒▒<br>
▒▒▒▓▒▒▒▒▓▒<i></i>▒▒▓▒▒▓▒▒▒▓<i></i>▒▒▓▒▒▒▓▒▒<br>
▒▒▓▒▒▒▒▒▓▒<i></i>▒▒▓▒▒▓▒▒▒▓<i></i>▒▒▓▒▒▒▓▒▒<br>
▒▓▒▒▒▒▒▒▒▓<i></i>▓▓▒▒▒▒▓▓▓▒<i></i>▒▒▒▓▓▓▒▒▒<br>
▒▒▒▒▒▒▒▒▒▒<i></i>▒▒▒▒▒▒▒▒▒▒<i></i>▒▒▒▒▒▒▒▒▒<br>

Name: Anonymous 2009-01-04 5:36

I refuse to help anybody who refuses to use english for programming. Everyone should do it.

Name: Anonymous 2009-01-04 5:53

Name: Anonymous 2009-01-04 7:04

OKAY T'AS ENERVE UN PROGRAMMEUR EXPERT
PUTAIN DE BORDEL DE MERDE
TOUT D'ABORD TU NE SAIS MÊME PAS CE QU'EST UNE FOUTUE PAGE MAN
DEUXIEMEMENT, CECI EST /PROG/ NE DEMANDE PAS DE REPONSES UTILES DE LA FACON DONT TU VOUDRAIS LES AVOIR
TROSIEMEMENT LA PROGRAMMATION CONSISTE UNIQUEMENT EN DE LA ``CONNERIE ABSTRAITE'' QUE TU NE COMPRENDRAS JAMAIS
ET PUTAIN DE FINALEMENT, VA TE FAIRE FOUTRE AVEC TA MERDE
TOUT A DEJA ETE REPONDU DANS >>3,4,10

Name: Anonymous 2009-01-04 7:09

>>26
This. The only exception is Fjölnir.

Name: Anonymous 2009-01-04 7:17

Ok le programmeur expert qui utilise le caps lock et écrit en gras pour se donner de l'importance...

Name: Anonymous 2009-01-04 7:37

why are there French people in my /prog/?
I bet most of you come from UPMC... niggers

Name: Anonymous 2009-01-04 10:02

Bouge de là

Name: Anonymous 2009-01-04 10:18

>>1-30
Même personne et nous avons été trollés constamment.

Name: Anonymous 2009-01-04 12:06

>>33
Et toi aussi

Name: Anonymous 2009-01-04 12:11

toi aussi code un rpg avec le site du zero! (lol)
un rpg avec le site du zero! (lol)
avec le site du zero!
le site du zero

Name: Anonymous 2009-01-04 12:22

Why the fuck must all of you French idiots
* Write your horrible code with every damn symbol name in french?
* Learn everything from the shittiest ``tutorials'' you can find instead of books written by EXPERTS who know their shit?
* Start speaking French on English-speaking websites whenever possible? And when you do, act like fucking illiterates with your own language?

You guys make me so ashamed of my country I can't even bring myself to troll your shitty thread.

Name: Anonymous 2009-01-04 12:51

>>36
Français détecté.

Name: Anonymous 2009-01-04 12:52

wow u can read english ^^

Name: Anonymous 2009-01-04 12:57

>>36 /thread

Name: GoneWacko 2009-01-04 13:05

Remove the definitions of RPKeik() and ~RPKeik from the class definition, or implement them.

Name: Anonymous 2009-01-05 10:35

Is /prog/ getting even slower?

Name: Anonymous 2009-01-05 10:48

>>41
No, your getting faster

Name: Anonymous 2009-01-05 11:03

What about my faster?

Name: Anonymous 2009-01-05 11:31

>>43
youre getting one

Name: Anonymous 2009-01-05 12:10

>>36
BR?  JAJAJAJA DE DONDE EROSU!!!!!

Name: Trollbot9000 2009-07-01 9:43

Attaque2joueur1=60.

Name: Anonymous 2011-02-03 0:40

Name: Anonymous 2013-01-19 23:49

/prog/ will be spammed continuously until further notice. we apologize for any inconvenience this may cause.

Name: Anonymous 2013-09-01 20:57




          r‐- 、                    /
         、.  _|___/ ̄`ヽ            /      い
   ',  /`ヽ_,X´ |-、/   ̄`ヽノ             |   か  い
       |   _r‐< ̄>ー-、.イ__ \        __|.   し  の
    ',  /「,>''"´/`ヽー-く⌒l_`ヽヽ     /   \   ら
 \  ', lア´  /./      \-'ヽ. ハ   ./   私    ?
 .  \  /   メ、|   ,ハ    ヽ/、  |   |    の   ト-----
    ∠!   ./rト八  l/ -|‐ ハ  |,ハ/ |    |    土   |
 ‐ ─  、  /|  j_r!\| -rァテ、|  ト、| /   |    下   |
    / \.ハ"  ,    j__rソ,  /.) Yl   <. 見. 座.  |
 //   ./ 人  、_   "//|  八    | た. を   |
     /   ,' .| r|>、__ ,,. イ /ヽ| ハ  ヽ   | 時      |   ____
   /   .| ∨/::::::/ |__,. イレ' r' \ |  )  、        ´       `ヽ
     .r-'∨.,':::i::::|_/\  rソ/:::::::::Y ∧   ` ー---‐/      最
      ∨  |::/::::(/ム)ヽrノ:::i::::::::::::::∨  \  /L  /      謝.  終
      | r/、!:::::::く人):::::::::/:::::::::::::::::|     ヽ/_/  |  貴   る   的
      ,ハ /ヽ,ヘ、::::::::l:::::::::::::ヽ_r- 、__ノ ヽ、 く_」    |  方   事  に
     ( ./  ヽ,ハー::::::::::::::::イ|  ̄ |   ',   |.     |  達   に
      ノ7  //rく::::r-、:::::::::::::;| _  |    |  /     |  な   .な
     |./  ./_,.へ.  ,.ヘ. ̄ /´   ,ハ_   } ̄`Y´{  |  の  る
     ,'  /::::::::::::::::Y::::::::ヽ/   / ∧`ヽノレ' ハ」  |  よ.   の
   r/|  'J::::::::::::::::/:::::::::::/  ,イ_/|:::::ヾ]_)ハ   /   |   :  .は
   く∧__j:::::::::::::::::;'::::::::::::(|  _ノ:::::::::,':::::::::/」 |/     |   :
     |:::::::::::::::::::::::::::::::::::::::し'::::::::::::/:;'::/´        '、 ?
     ヽ:;____、:::::::::::::::::::::::::::/::/´             \
             ̄`ヽ:;____/               ̄ ̄ ̄

Don't change these.
Name: Email:
Entire Thread Thread List