A voir également:
- Commnt convrtir char en int
- Coco char - Accueil - Réseaux sociaux
- Int converter - Télécharger - Bureautique
- C'est quoi le site qui remplace coco chat ✓ - Forum Réseaux sociaux
- Int main void ✓ - Forum C++
- Can't multiply sequence by non-int of type 'float' - Forum Python
2 réponses
LeSousss
Messages postés
149
Date d'inscription
vendredi 30 avril 2004
Statut
Membre
Dernière intervention
23 juillet 2010
15
15 juin 2004 à 11:19
15 juin 2004 à 11:19
Slt,
essaye :
c = (int)p;
essaye :
c = (int)p;
pi€rre
Messages postés
76
Date d'inscription
mercredi 9 juin 2004
Statut
Membre
Dernière intervention
13 octobre 2005
15 juin 2004 à 11:20
15 juin 2004 à 11:20
pour convertir un char* en int, il existe la fonction atoi:
par exemple
char p='4';
int c=atoi(&p);
par exemple
char p='4';
int c=atoi(&p);