cs_Matt67
Messages postés549Date d'inscriptionsamedi 6 septembre 2003StatutMembreDernière intervention 6 mars 20103 2 oct. 2003 à 19:57
Bonsoir,
C'est toi qui a faire ce source ???
Simple certes, mais pourquoi pas en français ?
A moins que ce ne soit qu'un copier/coller.
Matt
cs_zzzzzz
Messages postés408Date d'inscriptionlundi 16 décembre 2002StatutMembreDernière intervention18 décembre 2012 15 févr. 2003 à 14:46
lol merci mais verifier bien tes sources pour la prochaine foit :P
DarkerDrew
Messages postés1Date d'inscriptionmercredi 13 février 2002StatutMembreDernière intervention15 février 2002 15 févr. 2002 à 01:26
Merci ben SmallToad pour ton aide
inquiète toi pas j'oublierai pas le conio
Bye
DarkerDrew
SmallToad
Messages postés110Date d'inscriptionlundi 7 janvier 2002StatutMembreDernière intervention26 septembre 2004 14 févr. 2002 à 16:22
oups, j'ai oublier qu'il faut le #include <conio.h> pour utiliser getch. Oubliez-le pas.
bye,
SmallToad
SmallToad
Messages postés110Date d'inscriptionlundi 7 janvier 2002StatutMembreDernière intervention26 septembre 2004 14 févr. 2002 à 16:20
Marde je me suis tromper, prennez plutot ce code là:
//By DarkerDrew
//Modifier par son pote SmallToad
#include
void question(); //Ici on initialise les void
void calculer();
void reponse();
void main()
{
question();
calculer();
reponse();
return 0;
}
void question(){ //Ici c'est qu'est-ce qu'il a dans le void
//char mean character it is for the letter...
//int mean integral it is for the numbers
char Name[9999]; //Maximum of characters for the Name is 9999
int count;
float price;
float total;
cout << "My Calculator" << endl;
cout << "---------------------" << endl << endl;
cout << "This program calculates an inventory's cost."
<< endl << endl;
cout << "What is the name of the thing that you want to calculate? ";
cin >> Name;
cout << "How many " << Name << "s are there? ";
cin >> count;
cout << "How much does each " << Name << " cost? ";
cin >> price;
}
void calculer(){ //l'autre void
// Now ready to extend the inventory cost
total = count * price;
}
void reponse(){ //encore le void
cout << endl << "The total valuation for " << Name
<< " is $" << total << endl;
getch(); //Ici on attend un touche pour terminer le programme. C'est tjr utile.
}
2 oct. 2003 à 19:57
C'est toi qui a faire ce source ???
Simple certes, mais pourquoi pas en français ?
A moins que ce ne soit qu'un copier/coller.
Matt
15 févr. 2003 à 14:46
15 févr. 2002 à 01:26
inquiète toi pas j'oublierai pas le conio
Bye
DarkerDrew
14 févr. 2002 à 16:22
bye,
SmallToad
14 févr. 2002 à 16:20
//By DarkerDrew
//Modifier par son pote SmallToad
#include
void question(); //Ici on initialise les void
void calculer();
void reponse();
void main()
{
question();
calculer();
reponse();
return 0;
}
void question(){ //Ici c'est qu'est-ce qu'il a dans le void
//char mean character it is for the letter...
//int mean integral it is for the numbers
char Name[9999]; //Maximum of characters for the Name is 9999
int count;
float price;
float total;
cout << "My Calculator" << endl;
cout << "---------------------" << endl << endl;
cout << "This program calculates an inventory's cost."
<< endl << endl;
cout << "What is the name of the thing that you want to calculate? ";
cin >> Name;
cout << "How many " << Name << "s are there? ";
cin >> count;
cout << "How much does each " << Name << " cost? ";
cin >> price;
}
void calculer(){ //l'autre void
// Now ready to extend the inventory cost
total = count * price;
}
void reponse(){ //encore le void
cout << endl << "The total valuation for " << Name
<< " is $" << total << endl;
getch(); //Ici on attend un touche pour terminer le programme. C'est tjr utile.
}