no save
Assistance
Achat
News

Forum | programmation
[langage C] projet rep.telephonique, help!!!!
Char Snipeur, le mar. 15 mai 2007 à 08:42:37
C'est pas mal.
Mais pour faire un peu plus "objet" tu pourrai utilisé la struc un peu mieux. et plutôt que de définir ton propre type string, utilise string.h
struct fiche{
string prenom;
string nom;
string tel;
fiche(){};
fiche(string a,string b,string c):prenom(a),nom(b),tel(c){};
string getprenom()const{return prenom;}
string gettel()const {return tel;};
etc.};
la liste chainé c'est bien, mais l'inconvéniant c'est que c'est dure d'effectuer des opérations de trie.
Ensuite tes fonctions put sont etrange. Je ne ferai pas comme ça, mais il est possible que ça fonctionne.

Précédentkrimo_luv
mai 07
meriem
juin 07
Suivant
REPONSES
Stupeflip
mai 07
krimo_luv
mai 07
Char Snipeur
mai 07
krimo_luv
mai 07
Char Snipeur
mai 07
meriem
juin 07
Version Web
Réalisé par RedShift
no save