Bonjour à tous,je m'appelle hermann, étudiant en GIM à l'ESSET au Cameroun.
J'ai un problème avec une programme qui ne marche pas et moi je ne comprend pas pourquoi.
S'il vous plaît aider moi.
Voici le code source.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
 
#include<conio.h>
#include<stdio.h>
#ifdef _TURBOC_
 #define COMPILATEUR "TURBO C"
 #define VERSION _TURBOC_
 long filesize(char *file);
 typedef char near *LINEPTR;
 typedef unsigned char octet;
#else
 #define COMPILATAUR "INCONNU"
 #define VERSION "INCONNUE"
#endif
 
 int main()
  {
	octet oct1,oct2,oct3,oct4;
	textcolor(YELLOW); textbackground(BLUE);  clrscr();
	gotoxy(20,5);
	printf("Le compilateur utilis‚ est : ");
	gotoxy(4,11);
	prinf("%s Version 0x%x",COMPILATEUR,VERSION);
	gotoxy(4,11);
	oct1 = -3;  oct2 = 0;  oct3 = 255;  oct4 = 257;
	printf("Une variable de type(unsigned char) varie de 0 - 255");
	gotoxy(4,13);
	printf("ATTENTION aux ERREURS de DEBORDEMENT dans ces conditions car : ");
	gotoxy(8,15);
	printf("-3 => %d et 0 => %d et 255 =>%d et 257 => %d",oct1,oct2,oct3,oct4);
	gotoxy(20,19);
	textcolor(WHITE+BLINK);
	cprintf("Une touche pour arrˆter");
	gotoxy(30,21);
	getch();
	return 0;
}