Why the snake game coding get error?
<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> </body> </html>include<iostream.h> #include<conio.h> #include<graphics.h> #include<dos.h> #include<stdlib.h> #include<stdio.h> #include<time.h> #include<string.h> class Snake { int p1,p2,v1,v2,v3,e1,e2,prev,now,n,colr,dsp,cnt,dly,m; int stp,egGen; int xr,yr; void caught(); public: long scr; int strtX,strtY,endX,endY; int pos[100][2]; void show(); void init(); void egg(); void transpose(); void gnrtCond(); void gnrtUnCond(); void check(); void checkEgg(); void move(); void chngDir(); void sndEt(); void sndCgt(); int test(); void score(); Snake(); Snake(Snake*); ~Snake(); }; Snake::Snake() { } Snake::~Snake() { } void Snake::checkEgg() { if((e1 == p1) && (e2 == p2)) {sndEt(); egg(); dly--; score(); n++; } } void Snake::sndEt() {nosound(); sound(2500); delay(2); nosound(); } void Snake::sndCgt() {nosound(); for(int x=1000;x>0;x--) {sound(x); delay(1); } nosou