- // cmarsc 10-06-2002 devc++4
- // 256 COULEURS SOUS DOS DEVC++4
-
- #include <stdio.h>
- #include <conio.c>
-
- int main()
- {
-
- int i1;
- int col = 5;
- int ligne = 0;
- char clav;
-
- col = 1;
- ligne = 0;
- textcolor (206);
- gotoxy(22, 3);
- cprintf (" LA PALETTE DES 256 COULEURS DEV C++4 ");
- for (i1 = 0; i1 < 257;i1++) {
-
- (ligne == 16) ? col +=5 , ligne = 0 : col, ligne++;
- gotoxy(1 + col, 4 + ligne);
- if (i1 == 0)
- textcolor (15); // le zero = noir
- else
- textcolor (i1);
-
- cprintf ("%-3d", i1);
-
- }
-
- clav = getch();
-
- return 0;
- }
-
// cmarsc 10-06-2002 devc++4
// 256 COULEURS SOUS DOS DEVC++4
#include <stdio.h>
#include <conio.c>
int main()
{
int i1;
int col = 5;
int ligne = 0;
char clav;
col = 1;
ligne = 0;
textcolor (206);
gotoxy(22, 3);
cprintf (" LA PALETTE DES 256 COULEURS DEV C++4 ");
for (i1 = 0; i1 < 257;i1++) {
(ligne == 16) ? col +=5 , ligne = 0 : col, ligne++;
gotoxy(1 + col, 4 + ligne);
if (i1 == 0)
textcolor (15); // le zero = noir
else
textcolor (i1);
cprintf ("%-3d", i1);
}
clav = getch();
return 0;
}