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

C/C++ Q/A
[1512] Re:C++5.02에서 그래픽함수를 사용했는데 에러가 나오네여..해결좀..
조준회 [] 1288 읽음    2002-11-10 10:35
검색을 먼저 해보시기 바랍니다.

바로 1504번에도 똑같은 질문이 있지 않습니까?.ㅡㅡ^
경선 님이 쓰신 글 :
: C++5.02에서 소스를 짰는데여..윈도에서 실행할 수가 없다고 에러가 나오네여..
: 에러명은->GRAPHICS.H(20,52):Error directive: BGI graphics not supported under windows 입니다.
: 소스 내용은 아래와 같습니다.
:
: #ifndef _EX5_HPP
: #define _EX5_HPP
:
: #include <graphics.h>
: class Location {
:
: protected:
:
:   int x:
:
:   int y:
:
: public:
: int getX(void) {return x;}
:
: int getY(void) { return y;}
:
: void setX(int xx) { x=xx;}
:
: void setY(int yy) { y=yy;}
:
: void init(int xx,int yy) {x=xx; y=yy;}
:
: };
:
: class Point : public Location {
:
:  protected:
:    int color;
:
:  public:
:    void setColor(int c) { color=c;}
:
:    int getColor() { return color;}
:
:    void init(int xx,int yy,int c) {
:
:       Location::init(xx,yy);
:
:       color=c;
:       }
:
:    void draw();
:
:  };
:
:  class Box : public Point {
:
:  protected:
:    int sx,sy;
:  public:
:    void setSX(int xx) { sx=xx;}
:    int getSX() {return sx;}
:    void init(int xx,int yy, int sxx, int syy, int c) {
:    Point::init(xx,yy,c);
:    sx=sxx;
:    sy=syy;
:  }
:  void draw();
: };
:
: class Circle : public Point {
: protected:
:   int radius;
:
: public:
:   int getR() { return radius;}
:   void setR(int r) {radius=r;}
:   void init(int xx,int yy,int r,int c) {
:   Point::init(xx,yy,c);
:   radius=r;
: }
:
: void draw();
: };
:
: class Ellipse : public Circle {
:
: protected:
:   int yradius;
:
: public:
:   int getYR() { return yradius; }
:   void setYR(int yr) {yradius=yr;}
:
:   void init(int xx,int yy,int r,int yr,int c) {
:   Circle::init(xx,yy,r,c);
:   yradius=yr;
: }
: void draw();
: };
: #endif

+ -

관련 글 리스트
1511 C++5.02에서 그래픽함수를 사용했는데 에러가 나오네여..해결좀.. 경선 1350 2002/11/10
1512     Re:C++5.02에서 그래픽함수를 사용했는데 에러가 나오네여..해결좀.. 조준회 1288 2002/11/10
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.