Entradas

CODIGO C++ SNAKE

  #include <iostream> #include <windows.h> #include <stdlib.h> include <conio.h> include <time.h>   using namespace std ;   void gotoxy ( int x, int y ) {         HANDLE hCon ;         hCon = GetStdHandle ( STD_OUTPUT_HANDLE ) ;                 COORD dwPos ;         dwPos. X = x ;         dwPos. Y = y ;         SetConsoleCursorPosition ( hCon,dwPos ) ; }   class Snake {         public :                 int x,y ;                 int dx,dy ;                 char cuerpo ; } ;   class Fruta {         public :                 int x,y ;                 ch...