C++Builder Programming Forum
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
C++빌더 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
컴포넌트/라이브러리
메신저 프로젝트
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
볼랜드포럼 광고 모집

C++빌더 Q&A
C++Builder Programming Q&A
[59638] 예제구분인데..볼랜드에서는 실행이 않돼네요~
빨간눈 [interrupter] 851 읽음    2010-01-06 14:43
#include <math.h>

class Coord
{
protected:
    int x,y;
public:
    Coord(int ax, int ay) { x=ax;y=ay; }
    void GetXY(int &rx, int &ry) { rx=x;ry=y; }
    void SetXY(int ax, int ay) { x=ax;y=ay; }
};

class Point : public Coord
{
protected:
    char ch;
public:
    Point(int ax, int ay, char ach) : Coord(ax,ay) { ch=ach; }
    void Show() {
        gotoxy(x,y);putch(ch);
    }
    void Hide() {
        gotoxy(x,y);putch(' ');
    }
};

class Circle : public Point
{
protected:
    int Rad;
public:
    Circle(int ax, int ay, char ach, int aRad) : Point(ax,ay,ach) { Rad=aRad; }
    void Show() {
        for (double a=0;a<360;a+=15) {
            gotoxy(int(x+sin(a*3.14/180)*Rad),int(y-cos(a*3.14/180)*Rad));
            putch(ch);
        }
    }
    void Hide() {
        for (double a=0;a<360;a+=15) {
            gotoxy(int(x+sin(a*3.14/180)*Rad),int(y-cos(a*3.14/180)*Rad));
            putch(' ');
        }
    }
};

이렇게 선언하고

void __fastcall TForm1::Button1Click(TObject *Sender)
{
    Point P(10,10,'@');
    //P.Show();
    //Circle C(40,10,'*',8);
    //C.Show();
}
하였습니다.
gotoxy는 주석 처리
뭐가 문제일까요~ 문법을 잘몰라서 ㅠㅠ

+ -

관련 글 리스트
59638 예제구분인데..볼랜드에서는 실행이 않돼네요~ 빨간눈 851 2010/01/06
59639     Re:예제구분인데..볼랜드에서는 실행이 않돼네요~ Intotheblue 947 2010/01/06
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.