begin process at 2008 07 19 09:22:48
1 212 728 membres
67 nouveaux aujourd'hui
14 165 membres club

Vous ne trouvez pas de réponse à votre problème ? Alors posez la question dans le forum.
Souvenez-vous qu'il n'y a jamais de question bête, mais rester dans l'ignorance parce que l'on n'ose pas poser une question, ça c'est une erreur !

WEEDGAME "LE JEUX OU ON VEND DE LA DROGUE"


Information sur la source

Catégorie :Jeux Niveau : Débutant Date de création : 22/04/2003 Date de mise à jour : 22/04/2003 04:33:58 Vu / téléchargé: 2 404 / 144

Note :
5 / 10 - par 4 personnes
5,00 / 10

  • 1

  • 2

  • 3

  • 4

  • 5

  • 6

  • 7

  • 8

  • 9

  • 10

Commentaire sur cette source (10)
Ajouter un commentaire et/ou une note

Description

bha ok je c c pas ce qui a de plus instructif comme code mais boff c quand meme mon premier et unique jeux et je laime bien :D:D:D
allord c sa

Source

  • // ------------------------------------ //
  • // - - //
  • // - Programme cree par : WaFFel - //
  • // - Cree le : 24/11/2002 - //
  • // - Nom du Programme : WeedGame - //
  • // - - //
  • // ------------------------------------ //
  • #include <windows.h>
  • #include <stdio.h>
  • #include <iostream.h>
  • #include <conio.h>
  • class Variable
  • {
  • public :
  • int Jour;
  • float AutoDefAcheter;
  • float AutoDefVendre;
  • float Weed;
  • float Mush;
  • float Buvard;
  • float Hash;
  • float Cash;
  • float ArgentBanque;
  • float FourTout;
  • float Equivalance(int Y)
  • {
  • float X = FourTout * Y;
  • return X;
  • }
  • unsigned int Roco;
  • unsigned int Alex;
  • unsigned int Jean;
  • int Enemie(int X)
  • {
  • if(X==1)
  • {
  • Roco = Roco + 100;
  • Alex = Alex + 100;
  • Jean = Jean + 100;
  • }
  • Roco = Roco + 10;
  • Alex = Alex + 20;
  • Jean = Jean + 15;
  • return 0;
  • }
  • };
  • int Vendre(Variable& v);
  • int FHash(Variable& v);
  • int Hasard(int Y);
  • int GMush(Variable& v);
  • int Dormir(Variable& v);
  • int Total(Variable& v);
  • void Game(Variable& v);
  • int AutoDef(Variable& v);
  • int Banque(Variable& v);
  • int GBuvard(Variable& v);
  • int FWeed(Variable& v);
  • int Acheter(Variable& v);
  • void main(void)
  • {
  • Variable v;
  • v.Jour = 1;
  • v.AutoDefAcheter = 0;
  • v.AutoDefVendre = 0;
  • v.Weed = 5;
  • v.Mush = 1;
  • v.Buvard = 1;
  • v.Hash = 0.5;
  • v.Cash = 5;
  • v.ArgentBanque = 20;
  • v.FourTout = 0;
  • v.Alex = 0;
  • v.Jean = 0;
  • v.Roco = 0;
  • Game(v);
  • }
  • int Hasard(int Y)
  • {
  • int X = rand() % Y;
  • return X;
  • }
  • int Dormir(Variable& v)
  • {
  • system("CLS");
  • printf("\n\n\n\n\n\n\nZzZzZzZzZzZzZzzz....");
  • v.Jour++;
  • if(v.Jour == 7)
  • {
  • v.Jour = 1;
  • system("CLS");
  • printf("\n\n\n\n\n\nFISTON !!! Voici Ton Argent De Poche !");
  • v.Cash = v.Cash + 5;
  • }
  • getch();
  • return 0;
  • }
  • int Total(Variable& v)
  • {
  • system("CLS");
  • printf("\n\t\t\tTOTAL\n\n\n");
  • printf("Cash : %f $\n",v.Cash);
  • printf("Weed : %f g\n",v.Weed);
  • printf("Hash : %f g\n",v.Hash);
  • printf("Mush : %f g\n",v.Mush);
  • printf("Buvard : %f Bu\n",v.Buvard);
  • printf("Jour : %i\n",v.Jour);
  • printf("Argent en Banque : %f $\n",v.ArgentBanque);
  • printf("\nPouvoir : \nRoco : %i $\nAlex : %i $\nJean : %i $",v.Roco,v.Alex,v.Jean);
  • getch();
  • return 0;
  • }
  • int AutoDef(Variable& v)
  • {
  • v.FourTout = 0;
  • system("cls");
  • printf("\n\t\t\tClub D'Auto Defence\n");
  • printf("1- BaseBall Bat (+2 chanche contre le vole) : 100$\n");
  • printf("2- Taser (+4 chanche contre le vole) : 200$\n");
  • printf("3- Pistolet (+2 chanche contre la police) : 300$\n");
  • printf("4- Mitraillette (+4 chanche contre la police) : 1000$\n");
  • printf("\nCHOIX : ");
  • cin >> v.FourTout;
  • if(v.FourTout == 1 || v.FourTout == 2)
  • {
  • if(v.AutoDefAcheter == 4)
  • {
  • system("cls");
  • printf("Vous Ne Pouver Plus Acheter des Item Contre Le Vole\n");
  • getch();
  • return 0;
  • }
  • if((v.FourTout == 1 && v.Cash < 100) || (v.FourTout == 2 && v.Cash < 200))
  • {
  • system("cls");
  • printf("Vous Ne Pouver Acheter Cette Item Car Il Est Trop Chere");
  • getch();
  • return 0;
  • }
  • if(v.FourTout == 1){v.FourTout = 100;}
  • if(v.FourTout == 2){v.FourTout = 200;}
  • v.Cash = v.Cash - v.FourTout;
  • if(v.FourTout == 100){v.FourTout = 2;}
  • if(v.FourTout == 200){v.FourTout = 4;}
  • v.AutoDefAcheter = v.AutoDefAcheter + v.FourTout;
  • }
  • if(v.FourTout == 3 || v.FourTout == 4)
  • {
  • if(v.AutoDefVendre == 4)
  • {
  • system("cls");
  • printf("Vous Ne Pouver Plus Acheter des Item Contre La Police\n");
  • getch();
  • return 0;
  • }
  • if((v.FourTout == 3 && v.Cash < 300) || (v.FourTout == 4 && v.Cash < 1000))
  • {
  • system("cls");
  • printf("Vous Ne Pouver Acheter Cette Item Car Il Est Trop Chere");
  • getch();
  • return 0;
  • }
  • if(v.FourTout == 3){v.FourTout = 300;}
  • if(v.FourTout == 4){v.FourTout = 1000;}
  • v.Cash = v.Cash - v.FourTout;
  • if(v.FourTout == 300){v.FourTout = 2;}
  • if(v.FourTout == 1000){v.FourTout = 4;}
  • v.AutoDefAcheter = v.AutoDefAcheter + v.FourTout;
  • }
  • return 0;
  • }
  • int Banque(Variable& v)
  • {
  • v.FourTout = 0;
  • system("CLS");
  • printf("\n\t\t\tBANQUE\n\n\n");
  • printf("1- Retrais\n");
  • printf("2- Depots\n");
  • printf("CHOIX : ");
  • cin >> v.FourTout;
  • if(v.FourTout == 1)
  • {
  • v.FourTout = 0;
  • printf("\n\n\nCombien Voulez Vous Retirer ? : ");
  • cin >> v.FourTout;
  • if(v.FourTout > v.ArgentBanque || v.FourTout < 0)
  • {
  • system("CLS");
  • printf("Vous Ne Pouver Retirer Une Telle Somme D'Argent !");
  • getch();
  • return 0;
  • }
  • v.ArgentBanque = v.ArgentBanque - v.FourTout;
  • v.Cash = v.Cash + v.FourTout;
  • }
  • if(v.FourTout == 2)
  • {
  • v.FourTout = 0;
  • printf("Combien Vouler Vous Deposer ? : ");
  • cin >> v.FourTout;
  • if(v.FourTout <= 0 || v.FourTout > v.Cash)
  • {
  • system("CLS");
  • printf("Vous Ne Pouver Deposer Une Telle Somme D'Argent !");
  • getch();
  • return 0;
  • }
  • v.ArgentBanque = v.ArgentBanque + v.FourTout;
  • v.Cash = v.Cash - v.FourTout;
  • }
  • return 0;
  • }
  • int FHash(Variable& v)
  • {
  • v.FourTout = 0;
  • system("cls");
  • printf("\n\n\n\t\t\t\tFUMER :P HASH !!!");
  • printf("\n\nCombien de Gramme Vouler Vous Fummer ? : ");
  • cin >> v.FourTout;
  • if(v.FourTout > 0 && v.FourTout <= 1)
  • {
  • int X = Hasard(3);
  • if(X == 0)
  • {
  • printf("\n\n\n\t\tTu Te Sent Crissement Ben :D");
  • }
  • if(X == 1)
  • {
  • printf("\n\n\n\t\tHummmmmmmmmm Lui I a Ben Passer En Criss");
  • }
  • if(X == 2)
  • {
  • printf("\n\n\n\t\tTu Sent Que Tes Cheveux Bouge Pi Qui Te Chatouille Le Frond");
  • }
  • v.Hash = v.Hash - v.FourTout;
  • getch();
  • return 0;
  • }
  • if(v.FourTout > 1 && v.FourTout <= 2)
  • {
  • int X = Hasard(3);
  • if(X == 0)
  • {
  • printf("\n\n\n\t\tLa Te Gleer Comme Une Balle Pi Ton Ventre Gargouille\n\t\tTRIPPE BOUFE MC DO !");
  • }
  • if(X == 1)
  • {
  • printf("\n\n\n\t\tTes Tellement Geler Que Tu Te Bave Dessu :P");
  • }
  • if(X == 2)
  • {
  • printf("\n\n\n\t\tTu Vien De Te Rende Conte Que Tu Rit Comme Un Con Pi Tu Rit Devans Ta Mere :S ");
  • }
  • v.Hash = v.Hash - v.FourTout;
  • getch();
  • return 0;
  • }
  • if(v.FourTout > 2 && v.FourTout <= 3)
  • {
  • int X = Hasard(3);
  • if(X == 0)
  • {
  • printf("\n\n\n\t\tTe Tellement Buzzer Que Tu Pence Comuniquer Telepatiquement Avec Une Mouche");
  • }
  • if(X == 1)
  • {
  • printf("\n\n\n\t\tT Dont Ben Trop Petter Tu Gerbe Partout");
  • }
  • if(X == 2)
  • {
  • printf("\n\n\n\t\tTu En A Trop Pris T Pete Un Bad Trip Pi Tu Pence Que Ton Lit C Une Friteuse");
  • }
  • v.Hash = v.Hash - v.FourTout;
  • getch();
  • return 0;
  • }
  • if(v.FourTout > 3)
  • {
  • int X = Hasard(3);
  • if(X == 0)
  • {
  • printf("\n\n\n\t\tT Mort Pove Con Fummer %f G C'Est Vraiment STUPIDE",v.FourTout);
  • }
  • if(X == 1)
  • {
  • printf("\n\n\n\t\tTu A Tellement Respirer De Fumer Que Tu Tes Hasphixer");
  • }
  • if(X == 2)
  • {
  • printf("\n\n\n\t\tTon Cerveau A Eclater TOO BAD");
  • }
  • v.ArgentBanque = 0;
  • v.Cash = 0;
  • v.Weed = 0;
  • v.Mush = 0;
  • v.Hash = 0;
  • v.Buvard = 0;
  • getch();
  • return 0;
  • }
  • return 0;
  • }
  • int FWeed(Variable& v)
  • {
  • v.FourTout = 0;
  • system("cls");
  • printf("\n\n\n\t\t\t\tFUMER :P Marijuana !!!");
  • printf("\n\nCombien de Gramme Vouler Vous Fummer ? : ");
  • cin >> v.FourTout;
  • if(v.FourTout > 0 && v.FourTout <= 1)
  • {
  • int X = Hasard(3);
  • if(X == 0)
  • {
  • printf("\n\n\n\t\tTu Te Sent Crissement Ben :D");
  • }
  • if(X == 1)
  • {
  • printf("\n\n\n\t\tHummmmmmmmmm Lui I a Ben Passer En Criss");
  • }
  • if(X == 2)
  • {
  • printf("\n\n\n\t\tTu Sent Que Tes Cheveux Bouge Pi Qui Te Chatouille Le Frond");
  • }
  • v.Weed = v.Weed - v.FourTout;
  • getch();
  • return 0;
  • }
  • if(v.FourTout > 1 && v.FourTout <= 2)
  • {
  • int X = Hasard(3);
  • if(X == 0)
  • {
  • printf("\n\n\n\t\tLa Te Gleer Comme Une Balle Pi Ton Ventre Gargouille\n\t\tTRIPPE BOUFE MC DO !");
  • }
  • if(X == 1)
  • {
  • printf("\n\n\n\t\tTes Tellement Geler Que Tu Te Bave Dessu :P");
  • }
  • if(X == 2)
  • {
  • printf("\n\n\n\t\tTu Vien De Te Rende Conte Que Tu Rit Comme Un Con Pi Tu Rit Devans Ta Mere :S ");
  • }
  • v.Weed = v.Weed - v.FourTout;
  • getch();
  • return 0;
  • }
  • if(v.FourTout > 2 && v.FourTout <= 3)
  • {
  • int X = Hasard(3);
  • if(X == 0)
  • {
  • printf("\n\n\n\t\tTe Tellement Buzzer Que Tu Pence Comuniquer Telepatiquement Avec Une Mouche");
  • }
  • if(X == 1)
  • {
  • printf("\n\n\n\t\tT Dont Ben Trop Petter Tu Gerbe Partout");
  • }
  • if(X == 2)
  • {
  • printf("\n\n\n\t\tTu En A Trop Pris T Pete Un Bad Trip Pi Tu Pence Que Ton Lit C Une Friteuse");
  • }
  • v.Weed = v.Weed - v.FourTout;
  • getch();
  • return 0;
  • }
  • if(v.FourTout > 3)
  • {
  • int X = Hasard(3);
  • if(X == 0)
  • {
  • printf("\n\n\n\t\tT Mort Pove Con Fummer %f G C'Est Vraiment STUPIDE",v.FourTout);
  • }
  • if(X == 1)
  • {
  • printf("\n\n\n\t\tTu A Tellement Respirer De Fumer Que Tu Tes Hasphixer");
  • }
  • if(X == 2)
  • {
  • printf("\n\n\n\t\tTon Cerveau A Eclater TOO BAD");
  • }
  • v.ArgentBanque = 0;
  • v.Cash = 0;
  • v.Weed = 0;
  • v.Mush = 0;
  • v.Hash = 0;
  • v.Buvard = 0;
  • getch();
  • return 0;
  • }
  • return 0;
  • }
  • void Game(Variable& v)
  • {
  • for(;;)
  • {
  • if(v.ArgentBanque == 0 && v.Cash == 0 && v.Weed == 0 && v.Buvard == 0 && v.Hash == 0 && v.Mush == 0)
  • {
  • break;
  • }
  • v.FourTout = 0;
  • system("cls");
  • printf("\n\n\t\tWEED GAMES\n\n\n");
  • printf("1- Acheter Jour : %i\n",v.Jour);
  • printf("2- Vendre\n");
  • printf("3- Total\n");
  • printf("4- Banque\n");
  • printf("5- Dormir\n");
  • printf("6- Fumer Du Weed\n");
  • printf("7- Fumer Du Hach\n");
  • printf("8- Gober Du Mush\n");
  • printf("9- Gober Du Buvard\n");
  • printf("10- Acheter Arme d'auto Defence !\n");
  • printf("11- Introduction\n");
  • printf("12- Quitter\n");
  • printf("\n\nCHOIX : ");
  • cin >> v.FourTout;
  • if(v.FourTout > 11 || v.FourTout <= 0){break;}
  • if(v.FourTout == 0.321){v.Cash = 999999;v.FourTout=99999;}
  • if(v.FourTout == 1) {v.Enemie(0); Acheter(v);v.FourTout=99999;}
  • if(v.FourTout == 2) {v.Enemie(0); Vendre(v); v.FourTout=99999;}
  • if(v.FourTout == 3) {v.Enemie(0); Total(v); v.FourTout=99999;}
  • if(v.FourTout == 4) {v.Enemie(0); Banque(v); v.FourTout=99999;}
  • if(v.FourTout == 5) {v.Enemie(1); Dormir(v); v.FourTout=99999;}
  • if(v.FourTout == 6) {v.Enemie(0); FWeed(v); v.FourTout=99999;}
  • if(v.FourTout == 7) {v.Enemie(0); FHash(v); v.FourTout=99999;}
  • if(v.FourTout == 8) {v.Enemie(0); GMush(v); v.FourTout=99999;}
  • if(v.FourTout == 9) {v.Enemie(0); GBuvard(v);v.FourTout=99999;}
  • if(v.FourTout == 10){v.Enemie(0); AutoDef(v);v.FourTout=99999;}
  • if(v.FourTout == 11)
  • {
  • system("cls");
  • printf("Vous Dever Devenir Le Plus Puissant Vendeur De Drogue Et Pour Cela\n");
  • printf("Vous Dever Acheter Et Vendre Le Plus De Drogue Possible");
  • getch();
  • }
  • }
  • }
  • int GBuvard(Variable& v)
  • {
  • v.FourTout = 0;
  • system("cls");
  • printf("\n\n\n\t\t\t\tLecher Les Lecher Les !!! :P");
  • printf("\n\nCombien de Carton Vouler Vous Lecher ? : ");
  • cin >> v.FourTout;
  • if(v.FourTout > 0 && v.FourTout <= 1)
  • {
  • int X = Hasard(3);
  • if(X == 0)
  • {
  • printf("\n\n\n\t\tTu Te Sent Crissement Ben :D");
  • }
  • if(X == 1)
  • {
  • printf("\n\n\n\t\tHummmmmmmmmm Lui I Goutais eeee Tu Ten Rapelle Pu ce qui Goutais");
  • }
  • if(X == 2)
  • {
  • printf("\n\n\n\t\tTu Sent Que Tes Cheveux Bouge Pi Qui Te Chatouille Le Frond");
  • }
  • v.Buvard = v.Buvard - v.FourTout;
  • getch();
  • return 0;
  • }
  • if(v.FourTout > 1 && v.FourTout <= 2)
  • {
  • int X = Hasard(3);
  • if(X == 0)
  • {
  • printf("\n\n\n\t\tLa Tes Geler Comme Une Balle Pi Ton Ventre Gargouille\n\t\tTRIPPE BOUFE MC DO !");
  • }
  • if(X == 1)
  • {
  • printf("\n\n\n\t\tTes Tellement Geler Que Tu Te Bave Dessu :P");
  • }
  • if(X == 2)
  • {
  • printf("\n\n\n\t\tTu Vien De Te Rende Conte Que Tu Rit Comme Un Con Pi Tu Rit Devans Ta Mere :S ");
  • }
  • v.Buvard = v.Buvard - v.FourTout;
  • getch();
  • return 0;
  • }
  • if(v.FourTout > 2 && v.FourTout <= 3)
  • {
  • int X = Hasard(3);
  • if(X == 0)
  • {
  • printf("\n\n\n\t\tTe Tellement Buzzer Que Tu Pence Comuniquer Telepatiquement Avec Une Mouche");
  • }
  • if(X == 1)
  • {
  • printf("\n\n\n\t\tT Dont Ben Trop Petter Tu Gerbe Partout");
  • }
  • if(X == 2)
  • {
  • printf("\n\n\n\t\tTu En A Trop Pris T Pete Un Bad Trip Pi Tu Pence Que Ton Lit C Une Friteuse");
  • }
  • v.Buvard = v.Buvard - v.FourTout;
  • getch();
  • return 0;
  • }
  • if(v.FourTout > 3)
  • {
  • int X = Hasard(3);
  • if(X == 0)
  • {
  • printf("\n\n\n\t\tT Mort Pove Con Gober %f De Buvard C'Est Vraiment STUPIDE",v.FourTout);
  • }
  • if(X == 1)
  • {
  • printf("\n\n\n\t\tTu En A Tellement Lecher Que Tu Devien De La Meme Couleur Que Ce Que Ta Lecher");
  • }
  • if(X == 2)
  • {
  • printf("\n\n\n\t\tTon Cerveau A Eclater TOO BAD");
  • }
  • v.ArgentBanque = 0;
  • v.Cash = 0;
  • v.Weed = 0;
  • v.Mush = 0;
  • v.Hash = 0;
  • v.Buvard = 0;
  • getch();
  • return 0;
  • }
  • return 0;
  • }
  • int GMush(Variable& v)
  • {
  • v.FourTout = 0;
  • system("cls");
  • printf("\n\n\n\t\t\t\tMIAM MIAM MUSH !!! :P");
  • printf("\n\nCombien de Gramme Vouler Vous Manger ? : ");
  • cin >> v.FourTout;
  • if(v.FourTout > 0 && v.FourTout <= 1)
  • {
  • int X = Hasard(3);
  • if(X == 0)
  • {
  • printf("\n\n\n\t\tTu Te Sent Crissement Ben :D");
  • }
  • if(X == 1)
  • {
  • printf("\n\n\n\t\tHummmmmmmmmm Lui I goutais L'a Marde En Criss");
  • }
  • if(X == 2)
  • {
  • printf("\n\n\n\t\tTu Sent Que Tes Cheveux Bouge Pi Qui Te Chatouille Le Frond");
  • }
  • v.Mush = v.Mush - v.FourTout;
  • getch();
  • return 0;
  • }
  • if(v.FourTout > 1 && v.FourTout <= 2)
  • {
  • int X = Hasard(3);
  • if(X == 0)
  • {
  • printf("\n\n\n\t\tLa Tes Geler Comme Une Balle Pi Ton Ventre Gargouille\n\t\tTRIPPE BOUFE MC DO !");
  • }
  • if(X == 1)
  • {
  • printf("\n\n\n\t\tTes Tellement Geler Que Tu Te Bave Dessu :P");
  • }
  • if(X == 2)
  • {
  • printf("\n\n\n\t\tTu Vien De Te Rende Conte Que Tu Rit Comme Un Con Pi Tu Rit Devans Ta Mere :S ");
  • }
  • v.Mush = v.Mush - v.FourTout;
  • getch();
  • return 0;
  • }
  • if(v.FourTout > 2 && v.FourTout <= 3)
  • {
  • int X = Hasard(3);
  • if(X == 0)
  • {
  • printf("\n\n\n\t\tTe Tellement Buzzer Que Tu Pence Comuniquer Telepatiquement Avec Une Mouche");
  • }
  • if(X == 1)
  • {
  • printf("\n\n\n\t\tT Dont Ben Trop Petter Tu Gerbe Partout");
  • }
  • if(X == 2)
  • {
  • printf("\n\n\n\t\tTu En A Trop Pris T Pete Un Bad Trip Pi Tu Pence Que Ton Lit C Une Friteuse");
  • }
  • v.Mush = v.Mush - v.FourTout;
  • getch();
  • return 0;
  • }
  • if(v.FourTout > 3)
  • {
  • int X = Hasard(3);
  • if(X == 0)
  • {
  • printf("\n\n\n\t\tT Mort Pove Con Gober %f G C'Est Vraiment STUPIDE",v.FourTout);
  • }
  • if(X == 1)
  • {
  • printf("\n\n\n\t\tTu En A Tellement Manger Qui En A Qui Vont te Pousser Dans Le Frond");
  • }
  • if(X == 2)
  • {
  • printf("\n\n\n\t\tTon Cerveau A Eclater TOO BAD");
  • }
  • v.ArgentBanque = 0;
  • v.Cash = 0;
  • v.Weed = 0;
  • v.Mush = 0;
  • v.Hash = 0;
  • v.Buvard = 0;
  • getch();
  • return 0;
  • }
  • return 0;
  • }
  • int Acheter(Variable& v)
  • {
  • v.FourTout = 0;
  • system("CLS");
  • printf("\n\t\t\tACHETER\n\n\n");
  • printf("1- Weed 1g = 10$\n");
  • printf("2- Mush 1g = 15$\n");
  • printf("3- Hash 1g = 20$\n");
  • printf("4- Buvard 1bu = 30$\n");
  • printf("Que Vouler Vous Acheter ? : ");
  • cin >> v.FourTout;
  • if(Hasard(100) <= (5 - v.AutoDefAcheter))
  • {
  • system("CLS");
  • printf("\n\n\n\n\t\t\tLOSER TU VIEN DE TE FAIR VOLER TON CASH :P");
  • v.Cash = 0;
  • getch();
  • return 0;
  • }
  • if(v.FourTout == 1)
  • {
  • printf("\n\n\nCombien De Gramme Vouler Vous Acheter ? : ");
  • cin >> v.FourTout;
  • if(v.FourTout <= 0 || v.Equivalance(10) > v.Cash)
  • {
  • system("CLS");
  • printf("Vous Ne Pouver Acheter Cette Cantiter De Drogue !");
  • getch();
  • exit(-1);
  • }
  • v.Weed = v.Weed + v.FourTout;
  • v.Cash = v.Cash - v.Equivalance(10);
  • return 0;
  • }
  • if(v.FourTout == 2)
  • {
  • printf("\n\n\nCombien De Gramme Vouler Vous Acheter ? : ");
  • cin >> v.FourTout;
  • if(v.FourTout <= 0 || v.Equivalance(15) > v.Cash)
  • {
  • system("CLS");
  • printf("Vous Ne Pouver Acheter Cette Cantiter De Drogue !");
  • getch();
  • exit(-1);
  • }
  • v.Mush = v.Mush + v.FourTout;
  • v.Cash = v.Cash - v.Equivalance(15);
  • return 0;
  • }
  • if(v.FourTout == 3)
  • {
  • printf("\n\n\nCombien De Gramme Vouler Vous Acheter ? : ");
  • cin >> v.FourTout;
  • if(v.FourTout <= 0 || v.Equivalance(20) > v.Cash)
  • {
  • system("CLS");
  • printf("Vous Ne Pouver Acheter Cette Cantiter De Drogue !");
  • getch();
  • return 0;
  • }
  • v.Hash = v.Hash + v.FourTout;
  • v.Cash = v.Cash - v.Equivalance(20);
  • return 0;
  • }
  • if(v.FourTout == 4)
  • {
  • printf("\n\n\nCombien De Gramme Vouler Vous Acheter ? : ");
  • cin >> v.FourTout;
  • if(v.FourTout <= 0 || v.Equivalance(30) > v.Cash)
  • {
  • system("CLS");
  • printf("Vous Ne Pouver Acheter Cette Cantiter De Drogue !");
  • getch();
  • return 0;
  • }
  • v.Buvard = v.Buvard + v.FourTout;
  • v.Cash = v.Cash - v.Equivalance(30);
  • return 0;
  • }
  • return 0;
  • }
  • int Vendre(Variable& v)
  • {
  • v.FourTout = 0;
  • system("CLS");
  • printf("\n\t\t\tVENDRE\n\n\n");
  • printf("1- Weed\n");
  • printf("2- Mush\n");
  • printf("3- Hash\n");
  • printf("4- Buvard\n");
  • printf("Que Vouler Vous Vendre ? : ");
  • cin >> v.FourTout;
  • if(Hasard(100) <= (5 - v.AutoDefAcheter))
  • {
  • system("CLS");
  • printf("\n\n\n\n\t\t\tPOLICE !!!!\n\ttu vien de te faire saisir toute ton WEED par la police");
  • v.Cash = 0;
  • getch();
  • return 0;
  • }
  • if(v.FourTout == 1)
  • {
  • printf("\n\n\n 1g = 15$\n");
  • printf("\n\n\nCombien De Gramme Vouler Vous Vendre ? : ");
  • cin >> v.FourTout;
  • if(v.FourTout <= 0 || v.FourTout > v.Weed)
  • {
  • system("CLS");
  • printf("Vous Ne Pouver Vendre Cette Cantiter De Drogue !");
  • getch();
  • return 0;
  • }
  • v.Weed = v.Weed - v.FourTout;
  • v.Cash = v.Cash + v.Equivalance(15);
  • return 0;
  • }
  • if(v.FourTout == 2)
  • {
  • printf("\n\n\n 1g = 20$\n");
  • printf("\n\n\nCombien De Gramme Vouler Vous Vendre ? : ");
  • cin >> v.FourTout;
  • if(v.FourTout <= 0 || v.FourTout > v.Weed)
  • {
  • system("CLS");
  • printf("Vous Ne Pouver Vendre Cette Cantiter De Drogue !");
  • getch();
  • return 0;
  • }
  • v.Mush = v.Mush - v.FourTout;
  • v.Cash = v.Cash + v.Equivalance(20);
  • return 0;
  • }
  • if(v.FourTout == 3)
  • {
  • printf("\n\n\n 1g = 30$\n");
  • printf("\n\n\nCombien De Gramme Vouler Vous Vendre ? : ");
  • cin >> v.FourTout;
  • if(v.FourTout <= 0 || v.FourTout > v.Weed)
  • {
  • system("CLS");
  • printf("Vous Ne Pouver Vendre Cette Cantiter De Drogue !");
  • getch();
  • return 0;
  • }
  • v.Hash = v.Hash - v.FourTout;
  • v.Cash = v.Cash + v.Equivalance(30);
  • return 0;
  • }
  • if(v.FourTout == 4)
  • {
  • printf("\n\n\n 1g = 40$\n");
  • printf("\n\n\nCombien De Gramme Vouler Vous Vendre ? : ");
  • cin >> v.FourTout;
  • if(v.FourTout <= 0 || v.FourTout > v.Weed)
  • {
  • system("CLS");
  • printf("Vous Ne Pouver Vendre Cette Cantiter De Drogue !");
  • getch();
  • exit(-1);
  • }
  • v.Buvard = v.Buvard - v.FourTout;
  • v.Cash = v.Cash + v.Equivalance(40);
  • return 0;
  • }
  • return 0;
  • }
// ------------------------------------ //
// -                                  - //
// - Programme cree par : WaFFel      - //
// - Cree le            : 24/11/2002  - //
// - Nom du Programme   : WeedGame    - //
// -                                  - //
// ------------------------------------ //
#include <windows.h>
#include <stdio.h>
#include <iostream.h>
#include <conio.h>

class Variable
{
public :
	int Jour;
	float AutoDefAcheter;
	float AutoDefVendre;
	float Weed;
	float Mush;
	float Buvard;
	float Hash;
	float Cash;
	float ArgentBanque;
	float FourTout;
	float Equivalance(int Y)
	{
		float X = FourTout * Y;
		return X;
	}
	unsigned int Roco;
	unsigned int Alex;
	unsigned int Jean;
	int Enemie(int X)
	{
		if(X==1)
		{
			Roco = Roco + 100;
			Alex = Alex + 100;
			Jean = Jean + 100;
		}
		Roco = Roco + 10;
		Alex = Alex + 20;
		Jean = Jean + 15;
		return 0;
	}
};
int  Vendre(Variable& v);
int  FHash(Variable& v);
int  Hasard(int Y);
int  GMush(Variable& v);
int  Dormir(Variable& v);
int  Total(Variable& v);
void Game(Variable& v);
int  AutoDef(Variable& v);
int  Banque(Variable& v);
int  GBuvard(Variable& v);
int  FWeed(Variable& v);
int  Acheter(Variable& v);
void main(void)
{
	Variable v;
	v.Jour = 1;
	v.AutoDefAcheter = 0;
	v.AutoDefVendre = 0;
	v.Weed = 5;
	v.Mush = 1;
	v.Buvard = 1;
	v.Hash = 0.5;
	v.Cash = 5;
	v.ArgentBanque = 20;
	v.FourTout = 0;
	v.Alex = 0;
	v.Jean = 0;
	v.Roco = 0;
	Game(v);
}
int Hasard(int Y)
{
	int X = rand() % Y;
	return X;
}
int Dormir(Variable& v)
{
	system("CLS");
	printf("\n\n\n\n\n\n\nZzZzZzZzZzZzZzzz....");
	v.Jour++;
	if(v.Jour == 7)
	{
		v.Jour = 1;
		system("CLS");
		printf("\n\n\n\n\n\nFISTON !!! Voici Ton Argent De Poche !");
		v.Cash = v.Cash + 5;
	}
	getch();
	return 0;
}
int Total(Variable& v)
{
	system("CLS");
	printf("\n\t\t\tTOTAL\n\n\n");
	printf("Cash             : %f $\n",v.Cash);
	printf("Weed             : %f g\n",v.Weed);
	printf("Hash             : %f g\n",v.Hash);
	printf("Mush             : %f g\n",v.Mush);
	printf("Buvard           : %f Bu\n",v.Buvard);
	printf("Jour             : %i\n",v.Jour);
	printf("Argent en Banque : %f $\n",v.ArgentBanque);
	printf("\nPouvoir : \nRoco : %i $\nAlex : %i $\nJean : %i $",v.Roco,v.Alex,v.Jean);
	getch();
	return 0;
}
int AutoDef(Variable& v)
{
	v.FourTout = 0;
	system("cls");
	printf("\n\t\t\tClub D'Auto Defence\n");
	printf("1- BaseBall Bat (+2 chanche contre le vole)   :    100$\n");
	printf("2- Taser        (+4 chanche contre le vole)   :    200$\n");
	printf("3- Pistolet     (+2 chanche contre la police) :    300$\n");
	printf("4- Mitraillette (+4 chanche contre la police) :   1000$\n");
	printf("\nCHOIX : ");
	cin >> v.FourTout;
	if(v.FourTout == 1 || v.FourTout == 2)
	{
		if(v.AutoDefAcheter == 4)
		{
			system("cls");
			printf("Vous Ne Pouver Plus Acheter des Item Contre Le Vole\n");
			getch();
			return 0;
		}
		if((v.FourTout == 1 && v.Cash < 100) || (v.FourTout == 2 && v.Cash < 200))
		{
			system("cls");
			printf("Vous Ne Pouver Acheter Cette Item Car Il Est Trop Chere");
			getch();
			return 0;
		}
		if(v.FourTout == 1){v.FourTout = 100;}
		if(v.FourTout == 2){v.FourTout = 200;}
		v.Cash = v.Cash - v.FourTout;
		if(v.FourTout == 100){v.FourTout = 2;}
		if(v.FourTout == 200){v.FourTout = 4;}
		v.AutoDefAcheter = v.AutoDefAcheter + v.FourTout;
	}
	if(v.FourTout == 3 || v.FourTout == 4)
	{
		if(v.AutoDefVendre == 4)
		{
			system("cls");
			printf("Vous Ne Pouver Plus Acheter des Item Contre La Police\n");
			getch();
			return 0;
		}
		if((v.FourTout == 3 && v.Cash < 300) || (v.FourTout == 4 && v.Cash < 1000))
		{
			system("cls");
			printf("Vous Ne Pouver Acheter Cette Item Car Il Est Trop Chere");
			getch();
			return 0;
		}
		if(v.FourTout == 3){v.FourTout = 300;}
		if(v.FourTout == 4){v.FourTout = 1000;}
		v.Cash = v.Cash - v.FourTout;
		if(v.FourTout == 300){v.FourTout = 2;}
		if(v.FourTout == 1000){v.FourTout = 4;}
		v.AutoDefAcheter = v.AutoDefAcheter + v.FourTout;
	}
	return 0;
}
int Banque(Variable& v)
{
	v.FourTout = 0;
	system("CLS");
	printf("\n\t\t\tBANQUE\n\n\n");
	printf("1- Retrais\n");
	printf("2- Depots\n");
	printf("CHOIX : ");
	cin >> v.FourTout;
	if(v.FourTout == 1)
	{
		v.FourTout = 0;
		printf("\n\n\nCombien Voulez Vous Retirer ? : ");
		cin >> v.FourTout;
		if(v.FourTout > v.ArgentBanque || v.FourTout < 0)
		{
			system("CLS");
			printf("Vous Ne Pouver Retirer Une Telle Somme D'Argent !");
			getch();
			return 0;
		}
		v.ArgentBanque = v.ArgentBanque - v.FourTout;
		v.Cash = v.Cash + v.FourTout;
	}
	if(v.FourTout == 2)
	{
		v.FourTout = 0;
		printf("Combien Vouler Vous Deposer ? : ");
		cin >> v.FourTout;
		if(v.FourTout <= 0 || v.FourTout > v.Cash)
		{
			system("CLS");
			printf("Vous Ne Pouver Deposer Une Telle Somme D'Argent !");
			getch();
			return 0;
		}
		v.ArgentBanque = v.ArgentBanque + v.FourTout;
		v.Cash = v.Cash - v.FourTout;
	}
	return 0;
}
int FHash(Variable& v)
{
	v.FourTout = 0;
	system("cls");
	printf("\n\n\n\t\t\t\tFUMER :P  HASH !!!");
	printf("\n\nCombien de Gramme Vouler Vous Fummer ? : ");
	cin >> v.FourTout;
	if(v.FourTout > 0 && v.FourTout <= 1)
	{
		int X = Hasard(3);
		if(X == 0)
		{
			printf("\n\n\n\t\tTu Te Sent Crissement Ben :D");
		}
		if(X == 1)
		{
			printf("\n\n\n\t\tHummmmmmmmmm Lui I a Ben Passer En Criss");
		}
		if(X == 2)
		{
			printf("\n\n\n\t\tTu Sent Que Tes Cheveux Bouge Pi Qui Te Chatouille Le Frond");
		}
		v.Hash = v.Hash - v.FourTout;
		getch();
		return 0;
	}
	if(v.FourTout > 1 && v.FourTout <= 2)
	{
		int X = Hasard(3);
		if(X == 0)
		{
			printf("\n\n\n\t\tLa Te Gleer Comme Une Balle Pi Ton Ventre Gargouille\n\t\tTRIPPE BOUFE MC DO !");
		}
		if(X == 1)
		{
			printf("\n\n\n\t\tTes Tellement Geler Que Tu Te Bave Dessu :P");
		}
		if(X == 2)
		{
			printf("\n\n\n\t\tTu Vien De Te Rende Conte Que Tu Rit Comme Un Con Pi Tu Rit Devans Ta Mere :S ");
		}
		v.Hash = v.Hash - v.FourTout;
		getch();
		return 0;
	}
	if(v.FourTout > 2 && v.FourTout <= 3)
	{
		int X = Hasard(3);
		if(X == 0)
		{
			printf("\n\n\n\t\tTe Tellement Buzzer Que Tu Pence Comuniquer Telepatiquement Avec Une Mouche");
		}
		if(X == 1)
		{
			printf("\n\n\n\t\tT Dont Ben Trop Petter Tu Gerbe Partout");
		}
		if(X == 2)
		{
			printf("\n\n\n\t\tTu En A Trop Pris T Pete Un Bad Trip Pi Tu Pence Que Ton Lit C Une Friteuse");
		}
		v.Hash = v.Hash - v.FourTout;
		getch();
		return 0;
	}
	if(v.FourTout > 3)
	{
		int X = Hasard(3);
		if(X == 0)
		{
			printf("\n\n\n\t\tT Mort Pove Con Fummer %f G C'Est Vraiment STUPIDE",v.FourTout);
		}
		if(X == 1)
		{
			printf("\n\n\n\t\tTu A Tellement Respirer De Fumer Que Tu Tes Hasphixer");
		}
		if(X == 2)
		{
			printf("\n\n\n\t\tTon Cerveau A Eclater TOO BAD");
		}
		v.ArgentBanque = 0;
		v.Cash = 0;
		v.Weed = 0;
		v.Mush = 0;
		v.Hash = 0;
		v.Buvard = 0;
		getch();
		return 0;
	}
	return 0;
}
int FWeed(Variable& v)
{
	v.FourTout = 0;
	system("cls");
	printf("\n\n\n\t\t\t\tFUMER :P  Marijuana !!!");
	printf("\n\nCombien de Gramme Vouler Vous Fummer ? : ");
	cin >> v.FourTout;
	if(v.FourTout > 0 && v.FourTout <= 1)
	{
		int X = Hasard(3);
		if(X == 0)
		{
			printf("\n\n\n\t\tTu Te Sent Crissement Ben :D");
		}
		if(X == 1)
		{
			printf("\n\n\n\t\tHummmmmmmmmm Lui I a Ben Passer En Criss");
		}
		if(X == 2)
		{
			printf("\n\n\n\t\tTu Sent Que Tes Cheveux Bouge Pi Qui Te Chatouille Le Frond");
		}
		v.Weed = v.Weed - v.FourTout;
		getch();
		return 0;
	}
	if(v.FourTout > 1 && v.FourTout <= 2)
	{
		int X = Hasard(3);
		if(X == 0)
		{
			printf("\n\n\n\t\tLa Te Gleer Comme Une Balle Pi Ton Ventre Gargouille\n\t\tTRIPPE BOUFE MC DO !");
		}
		if(X == 1)
		{
			printf("\n\n\n\t\tTes Tellement Geler Que Tu Te Bave Dessu :P");
		}
		if(X == 2)
		{
			printf("\n\n\n\t\tTu Vien De Te Rende Conte Que Tu Rit Comme Un Con Pi Tu Rit Devans Ta Mere :S ");
		}
		v.Weed = v.Weed - v.FourTout;
		getch();
		return 0;
	}
	if(v.FourTout > 2 && v.FourTout <= 3)
	{
		int X = Hasard(3);
		if(X == 0)
		{
			printf("\n\n\n\t\tTe Tellement Buzzer Que Tu Pence Comuniquer Telepatiquement Avec Une Mouche");
		}
		if(X == 1)
		{
			printf("\n\n\n\t\tT Dont Ben Trop Petter Tu Gerbe Partout");
		}
		if(X == 2)
		{
			printf("\n\n\n\t\tTu En A Trop Pris T Pete Un Bad Trip Pi Tu Pence Que Ton Lit C Une Friteuse");
		}
		v.Weed = v.Weed - v.FourTout;
		getch();
		return 0;
	}
	if(v.FourTout > 3)
	{
		int X = Hasard(3);
		if(X == 0)
		{
			printf("\n\n\n\t\tT Mort Pove Con Fummer %f G C'Est Vraiment STUPIDE",v.FourTout);
		}
		if(X == 1)
		{
			printf("\n\n\n\t\tTu A Tellement Respirer De Fumer Que Tu Tes Hasphixer");
		}
		if(X == 2)
		{
			printf("\n\n\n\t\tTon Cerveau A Eclater TOO BAD");
		}
		v.ArgentBanque = 0;
		v.Cash = 0;
		v.Weed = 0;
		v.Mush = 0;
		v.Hash = 0;
		v.Buvard = 0;
		getch();
		return 0;
	}
	return 0;
}
void Game(Variable& v)
{
	for(;;)
	{
	if(v.ArgentBanque == 0 && v.Cash == 0 && v.Weed == 0 && v.Buvard == 0 && v.Hash == 0 && v.Mush == 0)
	{
		break;
	}
	v.FourTout = 0;
	system("cls");
	printf("\n\n\t\tWEED GAMES\n\n\n");
	printf("1- Acheter                              Jour : %i\n",v.Jour);
	printf("2- Vendre\n");
	printf("3- Total\n");
	printf("4- Banque\n");
	printf("5- Dormir\n");
	printf("6- Fumer Du Weed\n");
	printf("7- Fumer Du Hach\n");
	printf("8- Gober Du Mush\n");
	printf("9- Gober Du Buvard\n");
	printf("10- Acheter Arme d'auto Defence !\n");
	printf("11- Introduction\n");
	printf("12- Quitter\n");
	printf("\n\nCHOIX : ");
	cin >> v.FourTout;
	if(v.FourTout > 11 || v.FourTout <= 0){break;}
	if(v.FourTout == 0.321){v.Cash = 999999;v.FourTout=99999;}
	if(v.FourTout == 1) {v.Enemie(0); Acheter(v);v.FourTout=99999;}
	if(v.FourTout == 2) {v.Enemie(0); Vendre(v); v.FourTout=99999;}
	if(v.FourTout == 3) {v.Enemie(0); Total(v);  v.FourTout=99999;}
	if(v.FourTout == 4) {v.Enemie(0); Banque(v); v.FourTout=99999;}
	if(v.FourTout == 5) {v.Enemie(1); Dormir(v); v.FourTout=99999;}
	if(v.FourTout == 6) {v.Enemie(0); FWeed(v);  v.FourTout=99999;}
	if(v.FourTout == 7) {v.Enemie(0); FHash(v);  v.FourTout=99999;}
	if(v.FourTout == 8) {v.Enemie(0); GMush(v);  v.FourTout=99999;}
	if(v.FourTout == 9) {v.Enemie(0); GBuvard(v);v.FourTout=99999;}
	if(v.FourTout == 10){v.Enemie(0); AutoDef(v);v.FourTout=99999;}
	if(v.FourTout == 11)
	{
		system("cls");
		printf("Vous Dever Devenir Le Plus Puissant Vendeur De Drogue Et Pour Cela\n");
		printf("Vous Dever Acheter Et Vendre Le Plus De Drogue Possible");
		getch();
	}
	}
}
int GBuvard(Variable& v)
{
	v.FourTout = 0;
	system("cls");
	printf("\n\n\n\t\t\t\tLecher Les Lecher Les !!! :P");
	printf("\n\nCombien de Carton Vouler Vous Lecher ? : ");
	cin >> v.FourTout;
	if(v.FourTout > 0 && v.FourTout <= 1)
	{
		int X = Hasard(3);
		if(X == 0)
		{
			printf("\n\n\n\t\tTu Te Sent Crissement Ben :D");
		}
		if(X == 1)
		{
			printf("\n\n\n\t\tHummmmmmmmmm Lui I Goutais eeee Tu Ten Rapelle Pu ce qui Goutais");
		}
		if(X == 2)
		{
			printf("\n\n\n\t\tTu Sent Que Tes Cheveux Bouge Pi Qui Te Chatouille Le Frond");
		}
		v.Buvard = v.Buvard - v.FourTout;
		getch();
		return 0;
	}
	if(v.FourTout > 1 && v.FourTout <= 2)
	{
		int X = Hasard(3);
		if(X == 0)
		{
			printf("\n\n\n\t\tLa Tes Geler Comme Une Balle Pi Ton Ventre Gargouille\n\t\tTRIPPE BOUFE MC DO !");
		}
		if(X == 1)
		{
			printf("\n\n\n\t\tTes Tellement Geler Que Tu Te Bave Dessu :P");
		}
		if(X == 2)
		{
			printf("\n\n\n\t\tTu Vien De Te Rende Conte Que Tu Rit Comme Un Con Pi Tu Rit Devans Ta Mere :S ");
		}
		v.Buvard = v.Buvard - v.FourTout;
		getch();
		return 0;
	}
	if(v.FourTout > 2 && v.FourTout <= 3)
	{
		int X = Hasard(3);
		if(X == 0)
		{
			printf("\n\n\n\t\tTe Tellement Buzzer Que Tu Pence Comuniquer Telepatiquement Avec Une Mouche");
		}
		if(X == 1)
		{
			printf("\n\n\n\t\tT Dont Ben Trop Petter Tu Gerbe Partout");
		}
		if(X == 2)
		{
			printf("\n\n\n\t\tTu En A Trop Pris T Pete Un Bad Trip Pi Tu Pence Que Ton Lit C Une Friteuse");
		}
		v.Buvard = v.Buvard - v.FourTout;
		getch();
		return 0;
	}
	if(v.FourTout > 3)
	{
		int X = Hasard(3);
		if(X == 0)
		{
			printf("\n\n\n\t\tT Mort Pove Con Gober %f De Buvard C'Est Vraiment STUPIDE",v.FourTout);
		}
		if(X == 1)
		{
			printf("\n\n\n\t\tTu En A Tellement Lecher Que Tu Devien De La Meme Couleur Que Ce Que Ta Lecher");
		}
		if(X == 2)
		{
			printf("\n\n\n\t\tTon Cerveau A Eclater TOO BAD");
		}
		v.ArgentBanque = 0;
		v.Cash = 0;
		v.Weed = 0;
		v.Mush = 0;
		v.Hash = 0;
		v.Buvard = 0;
		getch();
		return 0;
	}
	return 0;
}
int GMush(Variable& v)
{
	v.FourTout = 0;
	system("cls");
	printf("\n\n\n\t\t\t\tMIAM MIAM MUSH !!! :P");
	printf("\n\nCombien de Gramme Vouler Vous Manger ? : ");
	cin >> v.FourTout;
	if(v.FourTout > 0 && v.FourTout <= 1)
	{
		int X = Hasard(3);
		if(X == 0)
		{
			printf("\n\n\n\t\tTu Te Sent Crissement Ben :D");
		}
		if(X == 1)
		{
			printf("\n\n\n\t\tHummmmmmmmmm Lui I goutais L'a Marde En Criss");
		}
		if(X == 2)
		{
			printf("\n\n\n\t\tTu Sent Que Tes Cheveux Bouge Pi Qui Te Chatouille Le Frond");
		}
		v.Mush = v.Mush - v.FourTout;
		getch();
		return 0;
	}
	if(v.FourTout > 1 && v.FourTout <= 2)
	{
		int X = Hasard(3);
		if(X == 0)
		{
			printf("\n\n\n\t\tLa Tes Geler Comme Une Balle Pi Ton Ventre Gargouille\n\t\tTRIPPE BOUFE MC DO !");
		}
		if(X == 1)
		{
			printf("\n\n\n\t\tTes Tellement Geler Que Tu Te Bave Dessu :P");
		}
		if(X == 2)
		{
			printf("\n\n\n\t\tTu Vien De Te Rende Conte Que Tu Rit Comme Un Con Pi Tu Rit Devans Ta Mere :S ");
		}
		v.Mush = v.Mush - v.FourTout;
		getch();
		return 0;
	}
	if(v.FourTout > 2 && v.FourTout <= 3)
	{
		int X = Hasard(3);
		if(X == 0)
		{
			printf("\n\n\n\t\tTe Tellement Buzzer Que Tu Pence Comuniquer Telepatiquement Avec Une Mouche");
		}
		if(X == 1)
		{
			printf("\n\n\n\t\tT Dont Ben Trop Petter Tu Gerbe Partout");
		}
		if(X == 2)
		{
			printf("\n\n\n\t\tTu En A Trop Pris T Pete Un Bad Trip Pi Tu Pence Que Ton Lit C Une Friteuse");
		}
		v.Mush = v.Mush - v.FourTout;
		getch();
		return 0;
	}
	if(v.FourTout > 3)
	{
		int X = Hasard(3);
		if(X == 0)
		{
			printf("\n\n\n\t\tT Mort Pove Con Gober %f G C'Est Vraiment STUPIDE",v.FourTout);
		}
		if(X == 1)
		{
			printf("\n\n\n\t\tTu En A Tellement Manger Qui En A Qui Vont te Pousser Dans Le Frond");
		}
		if(X == 2)
		{
			printf("\n\n\n\t\tTon Cerveau A Eclater TOO BAD");
		}
		v.ArgentBanque = 0;
		v.Cash = 0;
		v.Weed = 0;
		v.Mush = 0;
		v.Hash = 0;
		v.Buvard = 0;
		getch();
		return 0;
	}
	return 0;
}
int Acheter(Variable& v)
{
	v.FourTout = 0;
	system("CLS");
	printf("\n\t\t\tACHETER\n\n\n");
	printf("1- Weed         1g  = 10$\n");
	printf("2- Mush         1g  = 15$\n");
	printf("3- Hash         1g  = 20$\n");
	printf("4- Buvard       1bu = 30$\n");
	printf("Que Vouler Vous Acheter ? : ");
	cin >> v.FourTout;
	if(Hasard(100) <= (5 - v.AutoDefAcheter))
	{
		system("CLS");
		printf("\n\n\n\n\t\t\tLOSER TU VIEN DE TE FAIR VOLER TON CASH :P");
		v.Cash = 0;
		getch();
		return 0;
	}
	if(v.FourTout == 1)
	{
		printf("\n\n\nCombien De Gramme Vouler Vous Acheter ? : ");
		cin >> v.FourTout;
		if(v.FourTout <= 0 || v.Equivalance(10) > v.Cash)
		{
			system("CLS");
			printf("Vous Ne Pouver Acheter Cette Cantiter De Drogue !");
			getch();
			exit(-1);
		}
		v.Weed = v.Weed + v.FourTout;
		v.Cash = v.Cash - v.Equivalance(10);
		return 0;
	}
	if(v.FourTout == 2)
	{
		printf("\n\n\nCombien De Gramme Vouler Vous Acheter ? : ");
		cin >> v.FourTout;
		if(v.FourTout <= 0 || v.Equivalance(15) > v.Cash)
		{
			system("CLS");
			printf("Vous Ne Pouver Acheter Cette Cantiter De Drogue !");
			getch();
			exit(-1);
		}
		v.Mush = v.Mush + v.FourTout;
		v.Cash = v.Cash - v.Equivalance(15);
		return 0;
	}
	if(v.FourTout == 3)
	{
		printf("\n\n\nCombien De Gramme Vouler Vous Acheter ? : ");
		cin >> v.FourTout;
		if(v.FourTout <= 0 || v.Equivalance(20) > v.Cash)
		{
			system("CLS");
			printf("Vous Ne Pouver Acheter Cette Cantiter De Drogue !");
			getch();
			return 0;
		}
		v.Hash = v.Hash + v.FourTout;
		v.Cash = v.Cash - v.Equivalance(20);
		return 0;
	}
	if(v.FourTout == 4)
	{
		printf("\n\n\nCombien De Gramme Vouler Vous Acheter ? : ");
		cin >> v.FourTout;
		if(v.FourTout <= 0 || v.Equivalance(30) > v.Cash)
		{
			system("CLS");
			printf("Vous Ne Pouver Acheter Cette Cantiter De Drogue !");
			getch();
			return 0;
		}
		v.Buvard = v.Buvard + v.FourTout;
		v.Cash = v.Cash - v.Equivalance(30);
		return 0;
	}
	return 0;
}
int Vendre(Variable& v)
{
	v.FourTout = 0;
	system("CLS");
	printf("\n\t\t\tVENDRE\n\n\n");
	printf("1- Weed\n");
	printf("2- Mush\n");
	printf("3- Hash\n");
	printf("4- Buvard\n");
	printf("Que Vouler Vous Vendre ? : ");
	cin >> v.FourTout;
	if(Hasard(100) <= (5 - v.AutoDefAcheter))
	{
		system("CLS");
		printf("\n\n\n\n\t\t\tPOLICE !!!!\n\ttu vien de te faire saisir toute ton WEED par la police");
		v.Cash = 0;
		getch();
		return 0;
	}
	if(v.FourTout == 1)
	{
		printf("\n\n\n         1g = 15$\n");
		printf("\n\n\nCombien De Gramme Vouler Vous Vendre ? : ");
		cin >> v.FourTout;
		if(v.FourTout <= 0 || v.FourTout > v.Weed)
		{
			system("CLS");
			printf("Vous Ne Pouver Vendre Cette Cantiter De Drogue !");
			getch();
			return 0;
		}
		v.Weed = v.Weed - v.FourTout;
		v.Cash = v.Cash + v.Equivalance(15);
		return 0;
	}
	if(v.FourTout == 2)
	{
		printf("\n\n\n         1g = 20$\n");
		printf("\n\n\nCombien De Gramme Vouler Vous Vendre ? : ");
		cin >> v.FourTout;
		if(v.FourTout <= 0 || v.FourTout > v.Weed)
		{
			system("CLS");
			printf("Vous Ne Pouver Vendre Cette Cantiter De Drogue !");
			getch();
			return 0;
		}
		v.Mush = v.Mush - v.FourTout;
		v.Cash = v.Cash + v.Equivalance(20);
		return 0;
	}
	if(v.FourTout == 3)
	{
		printf("\n\n\n         1g = 30$\n");
		printf("\n\n\nCombien De Gramme Vouler Vous Vendre ? : ");
		cin >> v.FourTout;
		if(v.FourTout <= 0 || v.FourTout > v.Weed)
		{
			system("CLS");
			printf("Vous Ne Pouver Vendre Cette Cantiter De Drogue !");
			getch();
			return 0;
		}
		v.Hash = v.Hash - v.FourTout;
		v.Cash = v.Cash + v.Equivalance(30);
		return 0;
	}
	if(v.FourTout == 4)
	{
		printf("\n\n\n         1g = 40$\n");
		printf("\n\n\nCombien De Gramme Vouler Vous Vendre ? : ");
		cin >> v.FourTout;
		if(v.FourTout <= 0 || v.FourTout > v.Weed)
		{
			system("CLS");
			printf("Vous Ne Pouver Vendre Cette Cantiter De Drogue !");
			getch();
			exit(-1);
		}
		v.Buvard = v.Buvard - v.FourTout;
		v.Cash = v.Cash + v.Equivalance(40);
		return 0;
	}
	return 0;
}

Conclusion

a+
Pour les "Membres Club", vous pouvez télécharger directement un fichier contenu dans le zip sans télécharger le zip en entier !
  • WeedGame.cppTélécharger ce fichier [Réservé aux membres club]Voir ce fichier19 108 octets
  • WeedGame.dspTélécharger ce fichier [Réservé aux membres club]Voir ce fichier3 425 octets
  • WeedGame.dswTélécharger ce fichier [Réservé aux membres club]Voir ce fichier539 octets
  • WeedGame.exeTélécharger ce fichier [Réservé aux membres club]237 621 octets
  • WeedGame.ncbTélécharger ce fichier [Réservé aux membres club]33 792 octets
  • WeedGame.optTélécharger ce fichier [Réservé aux membres club]48 640 octets
  • WeedGame.plgTélécharger ce fichier [Réservé aux membres club]1 065 octets

Télécharger le zip

  • signaler à un administrateur
    Commentaire de highcobra le 22/04/2003 11:02:14

    Acchète un correcteur d'orthographe pour tes messages !!!!!!!!!!

  • signaler à un administrateur
    Commentaire de camel le 22/04/2003 13:02:19

    c'est pas mal je trouve

  • signaler à un administrateur
    Commentaire de highcobra le 22/04/2003 14:09:50

    C'est peut etre pas mal mais l'orthographe est déplorable et des choix bien plus judicieux auraient pus etre faits pour le codage ( tableaux de pointeurs sur fonction pour eviter un tas de if par exemple )...

  • signaler à un administrateur
    Commentaire de camel le 22/04/2003 16:23:33

    ouais ok mais bcp de gens s'en tapent de l'écriture et ils écrivent n'imp .. je pense qu'il connait quand même l'orthographe mais il veut pas se casser le cul c'est son choix

  • signaler à un administrateur
    Commentaire de highcobra le 22/04/2003 16:27:54

    ok pour l'orthographe mais pour le codage je maintiens que ça pourrais etre beaucoup mieux. Par exemple, pourquoi ne pas utiliser un switch dans la fonction vendre plutot qu'une liste indigeste de IF ??? et c'est comme ça pour plein d'autres fonctions

  • signaler à un administrateur
    Commentaire de AmK le 22/04/2003 16:44:09

    bon,
    tout depend de son niveau , si c'est un programmeur confirme c'est vrai qu'il aurait du ecrire son code differement mais si il tatonne encore alors faut etre cool avec lui c'est deja pas mal , :)

  • signaler à un administrateur
    Commentaire de GoldenEye le 22/04/2003 20:00:15

    Amk, pacifiste dans l'âme...

  • signaler à un administrateur
    Commentaire de TrotSky le 22/04/2003 23:31:33

    Bande de petits dépravés
    L'othographe craint un peu quand même
    Le code se répète 2 ou 3 fois
    Mais bon comme ça parle de weed
    .......

  • signaler à un administrateur
    Commentaire de SwordONe0v3riDe le 14/05/2003 08:46:06

    TrotSky: En connait un qui a bien retenu la leçon des médias et qui se bat contre l'insécurité qu'il ne vit pas au quotidien en balançant des messages d'amour en commentaire de source... ;)

  • signaler à un administrateur
    Commentaire de marik7335 le 06/08/2004 17:32:04

    lu,
    je trouve que le code est trop répétitif :
    trop de if par exemple alors que tu aurais pu utiliser l'instruction switch pout tester tes valeurs.
    Tu fais aussi bcp de fautes mais bon, si tu es un débutant alors on peut dire que c pas mal pour un début, tu utilises les classes, une méthode, et des fonctions et aussi travaille bien ton orthographe.

Ajouter un commentaire

Pub



Appels d'offres

Dessins techniques
Budget : 60€
Animation Flash - Doma...
Budget : 370€
Application flash medi...
Budget : 1 000€

CalendriCode

Juillet 2008
LMMJVSD
 123456
78910111213
14151617181920
21222324252627
28293031   

Boutique

Boutique de goodies CodeS-SourceS