Bon mon code a plein d´erreurs alors est-ce que vous pourriez m´aider à le débugger s´il vous plaît ?
Le Code Source :
//------------------------------------------------
----------------------//
/ / Fichiers include / /
//------------------------------------------------
----------------------//
- include < stdio.h>
- include < conio.h>
- include < stdlib.h>
//------------------------------------------------
----------------------//
/ / Mode d´image / /
//------------------------------------------------
----------------------//
void setmode(unsigned int mode)
{
asm{
MOV AX, mode
INT 0x10
}
}
//------------------------------------------------
----------------------//
/ / Afficher un pixel / /
//------------------------------------------------
----------------------//
void putpixel ( int x, int y, unsigned char coul)
{
ecran[(y*320)+x] = coul;
}
//------------------------------------------------
----------------------//
/ / Clear Screen / /
//------------------------------------------------
----------------------//
Void cls ( )
{
memset(ecran,0,64000L);
}
//------------------------------------------------
----------------------//
/ / Main / /
//------------------------------------------------
----------------------//
main()
{
setmode(0x13);
putpixel(10,10,10);
char *ecran = ( char *) ( 0xA0000000L);
getch();
cls();
setmode(0x03);
}
Et le compilateur me renvoie ces erreus :
Undefined symbol ´ecran´ in function putpixel(int,int,unsigned char)
Parameter ´coul´ is never used in function putpixel(int,int,unsigned char)
Parameter ´x´ is never used in function putpixel(int,int,unsigned char)
Parameter ´y´ is never used in function putpixel(int,int,unsigned char)
Type name expected [à la ligne où il ya void cls ( )]
Function ´memset´ should have a prototype in function cls()
Undefined symbol ´ecran´ in function cls()
C´est tout ( déjà trop ! ^^)...Moi j´ai aucune idée d´où ça peut venir...