PB DE CHAINE DE CARACTERE

Orkblutt Messages postés 17 Date d'inscription samedi 20 avril 2002 Statut Membre Dernière intervention 7 septembre 2004 - 18 mai 2002 à 18:53
cs_JeriKo Messages postés 17 Date d'inscription mardi 23 avril 2002 Statut Membre Dernière intervention 21 juillet 2003 - 19 mai 2002 à 01:31
pkoi ceci me genere t'il une erreur a l'execution??

#include <string>
void main()
{
int o;
o=2000;
char* O=new char;
itoa(o,O,10);
char* ch="Fichier";
strcat(ch,O);
}

1 réponse

cs_JeriKo Messages postés 17 Date d'inscription mardi 23 avril 2002 Statut Membre Dernière intervention 21 juillet 2003
19 mai 2002 à 01:31
c'est ton "char* ch="Fichier";" qui ne fonctionne pas, fais plutot char ch[] = "Fichier";
0
Rejoignez-nous