Saisie d'une ligne

cs_oligator Messages postés 3 Date d'inscription mercredi 10 septembre 2003 Statut Membre Dernière intervention 18 octobre 2003 - 18 oct. 2003 à 02:24
cs_djl Messages postés 3011 Date d'inscription jeudi 26 septembre 2002 Statut Membre Dernière intervention 27 novembre 2004 - 18 oct. 2003 à 10:34
Salut je veux saisir une chaîne de caractere telephone

cin << telephone

le format est (999) 999-9999

il y a un espace entre la parenthese et le prochain 9
y'a t'il une méthode avec le cin (de la librairie standard)pour saisir cette ligne comme une string

Sinon comment faire!!!!

merci

1 réponse

cs_djl Messages postés 3011 Date d'inscription jeudi 26 septembre 2002 Statut Membre Dernière intervention 27 novembre 2004 7
18 oct. 2003 à 10:34
ba ya ca
telephone[MAX];
cin.getline(telephone,MAX);

non?
0
Rejoignez-nous