Comment afficher ascii en C++

Résolu/Fermé
FOX - 19 janv. 2008 à 00:55
Pacorabanix Messages postés 3248 Date d'inscription jeudi 23 août 2007 Statut Membre Dernière intervention 19 mai 2013 - 1 déc. 2010 à 16:09
Bonjour,
SVP COMMENT ECRIRE UN PROGRAMME EN C++ QUI AFFICHE LES CODES ASCII
MERCI

4 réponses

charif591 Messages postés 8 Date d'inscription lundi 5 novembre 2007 Statut Membre Dernière intervention 30 octobre 2011 4
19 janv. 2008 à 01:35
avec borland c ou turbo c tu peut faire ça :

/* programme : ascii1.c */

#include <stdio.h>
#include <stdio.h>

void main (void)
{
int i;

clrscr();

for(i=0; i<=255; i++)
{
putch(i); putch(' ');
}
getch();
}
2
Pacorabanix Messages postés 3248 Date d'inscription jeudi 23 août 2007 Statut Membre Dernière intervention 19 mai 2013 660
19 janv. 2008 à 01:51
c'est du C pas du C++.
0