je pensais a quelque chose comme ça on avait appris a utiliser le gotoxy je sais pas vraiment si je l'utilise bien.
void dessin(int e)
{
switch(e)
{
case 1: gotoxy(3,7); printf(" | \n" );
gotoxy(3,8); printf(" |\n" );
gotoxy(3,9); printf(" |\n" );
gotoxy(3,10); printf(" |\n" );
gotoxy(3,11); printf(" |\n" );
gotoxy(3,12); printf(" |\n" );
gotoxy(3,13); printf(" |\n" );
gotoxy(3,14); printf(" |\n" );
gotoxy(3,15); printf(" |\n" );
gotoxy(3,16); printf(" |\n" ); break;
case 2: gotoxy(3,6); printf(" _______\n" );
gotoxy(3,7); printf(" |\n" );
gotoxy(3,8); printf(" |\n" );
gotoxy(3,9); printf(" |\n" );
gotoxy(3,10); printf(" |\n" );
gotoxy(3,11); printf(" |\n" );
gotoxy(3,12); printf(" |\n" );
gotoxy(3,13); printf(" |\n" );
gotoxy(3,14); printf(" |\n" );
gotoxy(3,15); printf(" |\n" );
gotoxy(3,16); printf(" |\n" ); break;
case 3: gotoxy(3,6); printf(" _______\n" );
gotoxy(3,7); printf(" | |\n" );
gotoxy(3,8); printf(" |\n" );
gotoxy(3,9); printf(" |\n" );
gotoxy(3,10); printf(" |\n" );
gotoxy(3,11); printf(" |\n" );
gotoxy(3,12); printf(" |\n" );
gotoxy(3,13); printf(" |\n" );
gotoxy(3,14); printf(" |\n" );
gotoxy(3,15); printf(" |\n" );
gotoxy(3,16); printf(" |\n" ); break;
case 4: gotoxy(3,6); printf(" _______\n" );
gotoxy(3,7); printf(" | |\n" );
gotoxy(3,8); printf(" | _\n" );
gotoxy(3,9); printf(" | / \\\n" );
gotoxy(3,10); printf(" | \\_/\n" );
gotoxy(3,11); printf(" |\n" );
gotoxy(3,12); printf(" |\n" );
gotoxy(3,13); printf(" |\n" );
gotoxy(3,14); printf(" |\n" );
gotoxy(3,15); printf(" |\n" );
gotoxy(3,16); printf(" |\n" ); break;
case 5: gotoxy(3,6); printf(" _______\n" );
gotoxy(3,7); printf(" | |\n" );
gotoxy(3,8); printf(" | _\n" );
gotoxy(3,9); printf(" | / \\\n" );
gotoxy(3,10); printf(" | \\_/\n" );
gotoxy(3,11); printf(" | | \n" );
gotoxy(3,12); printf(" |\n" );
gotoxy(3,13); printf(" |\n" );
gotoxy(3,14); printf(" |\n" );
gotoxy(3,15); printf(" |\n" );
gotoxy(3,16); printf(" |\n" ); break;
case 6: gotoxy(3,6); printf(" _______\n" );
gotoxy(3,7); printf(" | |\n" );
gotoxy(3,8); printf(" | _\n" );
gotoxy(3,9); printf(" | / \\\n" );
gotoxy(3,10); printf(" | \\_/\n" );
gotoxy(3,11); printf(" | _|_\n" );
gotoxy(3,12); printf(" | | | \n" );
gotoxy(3,13); printf(" | |_| \n" );
gotoxy(3,14); printf(" |\n" );
gotoxy(3,15); printf(" |\n" );
gotoxy(3,16); printf(" |\n" ); break;
case 7: gotoxy(3,6); printf(" _______\n" );
gotoxy(3,7); printf(" | |\n" );
gotoxy(3,8); printf(" | _\n" );
gotoxy(3,9); printf(" | / \\\n" );
gotoxy(3,10); printf(" | \\_/\n" );
gotoxy(3,11); printf(" | _|_\n" );
gotoxy(3,12); printf(" | /| | \n" );
gotoxy(3,13); printf(" | / |_| \n" );
gotoxy(3,14); printf(" |\n" );
gotoxy(3,15); printf(" |\n" );
gotoxy(3,16); printf(" |\n" ); break;
case 8: gotoxy(3,6); printf(" _______\n" );
gotoxy(3,7); printf(" | |\n" );
gotoxy(3,8); printf(" | _\n" );
gotoxy(3,9); printf(" | / \\\n" );
gotoxy(3,10); printf(" | \\_/\n" );
gotoxy(3,11); printf(" | _|_\n" );
gotoxy(3,12); printf(" | /| |\\\n" );
gotoxy(3,13); printf(" | / |_| \\\n" );
gotoxy(3,14); printf(" |\n" );
gotoxy(3,15); printf(" |\n" );
gotoxy(3,16); printf(" |\n" ); break;
case 9: gotoxy(3,6); printf(" _______\n" );
gotoxy(3,7); printf(" | |\n" );
gotoxy(3,8); printf(" | _\n" );
gotoxy(3,9); printf(" | / \\\n" );
gotoxy(3,10); printf(" | \\_/\n" );
gotoxy(3,11); printf(" | _|_\n" );
gotoxy(3,12); printf(" | /| |\\\n" );
gotoxy(3,13); printf(" | / |_| \\\n" );
gotoxy(3,14); printf(" | ^\n" );
gotoxy(3,15); printf(" | / \n" );
gotoxy(3,16); printf(" | / \n" ); break;
case 10: gotoxy(3,6); printf(" _______\n" );
gotoxy(3,7); printf(" | |\n" );
gotoxy(3,8); printf(" | _\n" );
gotoxy(3,9); printf(" | / \\\n" );
gotoxy(3,10); printf(" | \\_/\n" );
gotoxy(3,11); printf(" | _|_\n" );
gotoxy(3,12); printf(" | /| |\\\n" );
gotoxy(3,13); printf(" | / |_| \\\n" );
gotoxy(3,14); printf(" | ^\n" );
gotoxy(3,15); printf(" | / \\\n" );
gotoxy(3,16); printf(" | / \\\n" );
}
}