|
검색을 먼저 해보시기 바랍니다.
바로 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
|