J´aimerais aussi changer le " 123" pour du texte ( Bob)
Mouuh -> Quand j´ai commencé à écrire mon message, yavait pas encore le tien
Donc oui ce que tu dis c´est pareil
merci, mais pourquoi encore une fois c´est hors-sujet : là d´accord ça y était un peu, mais l´autre question, c´était pas le cas
Xegor :
tu emts char NOM[50];ca te fait un tableau de caractere
ensuite , cin>> NOMnormal quoiet pour comparer c´eststrcmp( NOM , "Bob");sans oublier d´inclure < string.h>
ok, je vais essayer sa et je revien.
je le mets ou le char nom[50] ? ??
Xegor > juste apers le { du main
désolé, je ne pourrai pas répondre a tout, je n´étais pas la ce WE, j´ai donc lu en diagonale
Sinon, Irrlicht, je l´ai dl il y a qq semaines, sympa aussi j´aime bien !un moteur a FPS
Avec l´int des variables???
int main(){char nom[500];int truc;int bidule;. ..
ok.. thx je vais essayer ca...
Et je prend ca comme condition???:
if ( nom == Bob )
if ( strcmp(nom,"bob")==0)
ou alors si tu ne veux pas te faire chier :
using namespace std;
int main(){string nom;int truc;
nom = " bob";
if ( nom=="bob"){. ...
}
voila comment ne pas s´embeter
exemple complet ( mon site):http://perso.numericable.fr/~fvirtman/info/tuto/index.html
paragraphe : F.2.1 & F.2.2
Yeah! ca fonctionne enfin, merci JYY
ça fonctionne avec la méthode C ( char* et strcmp) ou alors la méthode C++ ( string) ?
J´ai essayer tes tutos sur le C++ mais internet explorer bug quand je clik
avec la méthode C...
ahhh ok je peux clicker maintenant...
ah, ah