Bonjour,
alors voilà, j'ai une classe "Champ" avec les attributs suivant :
private:
char * _nomchamp;
char * _explication;
char * _type;
char * _format;
char * _separator;
mon constructeur est comme ça :
Champ ::Champ(char * nom = "", char * explic = "", char * type = "", char * format = "", char * separator = "") { _explication = new char [128]; _explication = explic; _nomchamp = new char [64]; _nomchamp = nom; _type = new char [8]; _type = type; _format = new char [32]; _format = format; _separator = new char [64]; _separator = separator; }
|
et quand je crée une instance, je fais ça :
Champ * ch10 = new Champ ("DATE_ECHEANCE", "D", "date", "dd/mm/yy", "/");
Bon, apparemment, tout est normal, et ça l'est, sauf pour une chose :
je sias pas pouruqoi, mais il en veut pas me mettre la valeur passée en paramètre dans ma dernière variable ( _separator ) et je vois toujours pas pouruqoi, il me met toujours les memes caractères bizarres.
Quelqu'un sait-il pourquoi?