BoostCraft
NOUVEAU SITE !
http://www.boostcraft.fr

Rejoignez le forum, c’est rapide et facile

BoostCraft
NOUVEAU SITE !
http://www.boostcraft.fr
BoostCraft
Vous souhaitez réagir à ce message ? Créez un compte en quelques clics ou connectez-vous pour continuer.
Rechercher
 
 

Résultats par :
 


Rechercher Recherche avancée

Derniers sujets
» Flood post
Programmation EmptyVen 3 Avr - 22:29:40 par Plumeex

» Canditature de gabi3025
Programmation EmptyDim 14 Oct - 19:19:06 par gabi3025

» [Candidature] Aromax
Programmation EmptyVen 14 Sep - 19:21:48 par Aromax

» candidature de gus433
Programmation EmptyMer 1 Aoû - 16:39:06 par gus433

» Candi de Arsurus
Programmation EmptyMar 24 Juil - 15:15:47 par Arsurus

» Candidature de Zz_Ghost_Rusher
Programmation EmptyDim 17 Juin - 16:29:55 par Zz_Ghost_Rusher

» candidature
Programmation EmptyDim 17 Juin - 16:28:41 par diable2211

» Périados s'excuse pour de bon !
Programmation EmptySam 26 Mai - 11:49:25 par Incolas...

» NOUVEAU SITE !!!
Programmation EmptySam 12 Mai - 18:06:06 par Plumeex

Sondage
Qui est en ligne ?
Il y a en tout 7 utilisateurs en ligne :: 0 Enregistré, 0 Invisible et 7 Invités

Aucun

[ Voir toute la liste ]


Le record du nombre d'utilisateurs en ligne est de 24 le Jeu 19 Sep - 16:12:34
Connexion Mumble
Le Deal du moment : -11%
Smartphone 6.36 ” Xiaomi 14 (12 Go / 256 Go
Voir le deal
641 €

Programmation

3 participants

Aller en bas

Programmation Empty Programmation

Message  Incolas... Mar 18 Oct - 18:28:46

BonDour,

Esce que qqn dans ce serveur sais programmer. (en C ou en html/css)
Incolas...
Incolas...
Membre actif
Membre actif

Messages : 360
Date d'inscription : 03/10/2011
Localisation : Palaiseau

Revenir en haut Aller en bas

Programmation Empty Re: Programmation

Message  Zombini Mar 18 Oct - 19:28:42

Nop. Mais si y a besoin je peux me démerder pour faire un truc avec des tutos
Zombini
Zombini
Admin
Admin

Messages : 277
Date d'inscription : 27/09/2011

Revenir en haut Aller en bas

Programmation Empty Re: Programmation

Message  Incolas... Mar 18 Oct - 19:41:13

Nn pas besoin. Je sais programmer en C mais je voulais juste savoir qui savaient
Incolas...
Incolas...
Membre actif
Membre actif

Messages : 360
Date d'inscription : 03/10/2011
Localisation : Palaiseau

Revenir en haut Aller en bas

Programmation Empty Re: Programmation

Message  az912 Dim 23 Oct - 13:28:53

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

int main(int argc, char *argv[])
{
const int NOMBRE_DE_VIES_INITIALES = 5;
int nombreDeVies;
int niveau;
int age = 0;

nombreDeVies = 4;
niveau = 2;
printf("Il vous reste %d vie et vous etes au niveau %d\n\n",nombreDeVies, niveau);
printf("***BOUM***\n\n");
nombreDeVies = 3;
niveau = 1;
printf("Oups, tu n'as plus que %d vies. Tu es maintenant au niveau %d \n\n", nombreDeVies, niveau);
printf("Ce n'est pas grave, quel age avez vous ?");
scanf("%d", &age);
printf("Ah, vous avez %d ans !\n", age);

return 0;
}



=P
az912
az912
Membre actif
Membre actif

Messages : 271
Date d'inscription : 01/10/2011
Age : 27
Localisation : Tinqueux

Revenir en haut Aller en bas

Programmation Empty Re: Programmation

Message  Incolas... Lun 24 Oct - 13:17:23

#include <iostream>
using namespace std;

void Store(){

cout << "The Item store is not finished yet\n" << endl;

int Mainmenu();
Mainmenu();

}

void Character(){

int PlayerHp, PlayerStr, PlayerMana;

cout << "Your character has:\n\n";

cout << PlayerHp << " Health" << endl;
cout << PlayerStr << " Strength" << endl;
cout << PlayerMana << " Mana" << endl;

cout << endl;

int Mainmenu();
Mainmenu();
}

void Inventory(){

cout << "Your inventory contains:\n" << endl;

int Mainmenu();
Mainmenu();

}

void Wilderness(){

cout << "You search the Jungle and find:\n" << endl;

string Creatures[10];

Creatures[0] = "1";
Creatures[1] = "2";
Creatures[2] = "3";
Creatures[3] = "4";

cout << Creatures << " Is really dangerous " << endl;

int Mainmenu();
Mainmenu();
}

void Mainmenu(){

string choice;

cout << "1: Attack creature" << endl;
cout << "2: Buy equipment" << endl;
cout << "3: Inventory" << endl;
cout << "4: Stats" << endl;

// invalid option returns to this
InvalidOption:

cin >> choice;
if (choice == "1"){
Wilderness ();
}
else if (choice == "2"){
Store();
}
else if (choice == "3"){
Inventory();
}
else if (choice == "4"){
Character();
}
else{
cout << "You have not chosen a valid option" << endl;
goto InvalidOption;
}



}

int main()
{
int PlayerHp = 100, PlayerStr = 20, PlayerMana = 50;
Mainmenu ();
}
Incolas...
Incolas...
Membre actif
Membre actif

Messages : 360
Date d'inscription : 03/10/2011
Localisation : Palaiseau

Revenir en haut Aller en bas

Programmation Empty Re: Programmation

Message  Contenu sponsorisé


Contenu sponsorisé


Revenir en haut Aller en bas

Revenir en haut


 
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum