// file name : ele10.cpp
#include\"stdafx.h\"
#include\"ele.h\"

 


#ifndef CONIO
#define CONIO
#include<conio.h>
#endif

#ifndef STDIO
#define STDIO
#include<stdio.h>
#endif

Container1::Container1(int max, int floor = 1):
Container(max, floor)
{
 dContainer();
}

void Container1::dContainer()
{
 int x,y;

 x = 32;
 y = -2 * GetFloor() + 19;

 if( GetContainerState() == MovingUp )
  y--;

 if( GetContainerState() == MovingDown )
  y++;

 goto xy(x, y - 2);
 printf(\"   \");
 goto xy(x, y - 1);
 printf(\"   \");
 goto xy(x, y + 3);
 printf(\"   \");
 goto xy(x, y + 4);
 printf(\"   \");

 switch ( GetDoorState() )
 {
  case Opened:
   goto xy(x, y);
   printf(\"%c%c%c\",214,205,184);
   goto xy(x, y+1);
   printf(\"%c%c%c\",186,\' \',186);
   goto xy(x, y+2);
   printf(\"%c%c%c\",211,205,189);
   break;
  case Opening:
  case Closing:
   goto xy(x, y);
   printf(\"%c%c%c\",218,210,191);
   goto xy(x, y+1);
   printf(\"%c%c%c\",179,186,179);
   goto xy(x, y+2);
   printf(\"%c%c%c\",192,208,217);
   break;
  case Closed:
   goto xy(x, y);
   printf(\"%c%c%c\",218,196,191);
   goto xy(x, y+1);
   printf(\"%c%c%c\",179,\' \',179);
   goto xy(x, y+2);
   printf(\"%c%c%c\",192,196,217);
   break;
 }
}

void Container1::dDoor()
{
 dContainer();
}

void Container1::dButton()
{
 int i;
 for( i = 1; i <= 7; i++ )
 {
  goto xy(12, i+6);
  if( GetButton(i) != 0 )
   printf(\"%c\", 2);
  else
   printf(\" \");
 }

 goto xy(16, 10);
 printf(\"in Elevator\");
 goto xy(18, 11);
 printf(\"%d person(s)\", GetNumber());
}

Container2::Container2(int max, int floor = 7):
Container(max, floor)
{
 dContainer();
}
void Container2::dContainer()
{
 int x,y;

 x = 45;
 y = -2 * GetFloor() + 19;

 if( GetContainerState() == MovingUp )
  y--;

 if( GetContainerState() == MovingDown )
  y++;

 goto xy(x, y - 2);
 printf(\"   \");
 goto xy(x, y - 1);
 printf(\"   \");
 goto xy(x, y + 3);
 printf(\"   \");
 goto xy(x, y + 4);
 printf(\"   \");

 switch ( GetDoorState() )
 {
  case Opened:
   goto xy(x, y);
   printf(\"%c%c%c\",214,205,184);
   goto xy(x, y+1);
   printf(\"%c%c%c\",186,\' \',186);
   goto xy(x, y+2);
   printf(\"%c%c%c\",211,205,189);
   break;
  case Opening:
  case Closing:
   goto xy(x, y);
   printf(\"%c%c%c\",218,210,191);
   goto xy(x, y+1);
   printf(\"%c%c%c\",179,186,179);
   goto xy(x, y+2);
   printf(\"%c%c%c\",192,208,217);
   break;
  case Closed:
   goto xy(x, y);
   printf(\"%c%c%c\",218,196,191);
   goto xy(x, y+1);
   printf(\"%c%c%c\",179,\' \',179);
   goto xy(x, y+2);
   printf(\"%c%c%c\",192,196,217);
   break;
 }
}


void Container2::dDoor()
{
 dContainer();
}

void Container2::dButton()
{
 int i;

 for( i = 1; i <= 7; i++ )
 {
  goto xy(69, i+6);
  if( GetButton(i) != 0 )
   printf(\"%c\", 2);
  else
   printf(\" \");
 }

 goto xy( 51, 10);
 printf(\"in Elevator\");
 goto xy( 53, 11);
 printf(\"%d person(s)\", GetNumber());
}


///////////////////////////////

엘레베이터를 작성중인데,

elevator\\ele10.cpp(37) : error C3861: \'gotoxy\': identifier not found
elevator\\ele10.cpp(39) : error C2143: syntax error : missing \';\' before \'(\'
elevator\\ele10.cpp(41) : error C2143: syntax error : missing \';\' before \'(\'
elevator\\ele10.cpp(43) : error C2143: syntax error : missing \';\' before \'(\'
elevator\\ele10.cpp(49) : error C2143: syntax error : missing \';\' before \'(\'
elevator\\ele10.cpp(51) : error C2143: syntax error : missing \';\' before \'(\'
elevator\\ele10.cpp(53) : error C2143: syntax error : missing \';\' before \'(\'
elevator\\ele10.cpp(58) : error C2143: syntax error : missing \';\' before \'(\'
elevator\\ele10.cpp(60) : error C2143: syntax error : missing \';\' before \'(\'

이 에러가 납니다. 밑으로 더 있는데, 계속 goto문에서 납니다.

뭐가 문제일까요?