C++ 텍스트 기반의 간단한 Drawing Tool 구현.Text Draw 입니다. 클래스, 상속, 가상함수, 링크드 리스트
닫기
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
해당 자료는 7페이지 까지만 미리보기를 제공합니다.
7페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

C++ 텍스트 기반의 간단한 Drawing Tool 구현.Text Draw 입니다. 클래스, 상속, 가상함수, 링크드 리스트에 대한 보고서 자료입니다.

본문내용

ㄷText Draw 텍스트 기반의 간단한 Drawing Tool 구현
HorizontalLine
VerticlaLine
WideHorizontalLine
Rectangle
SolidRectangle
Square
SolidSquare
UprightTriangle
FlippedTriangle
Parallelogram
을 텍스트 기반으로 그리는 툴입니다.
모두 클래스로 되어있으며 헤더파일과 소스파일로 나누었습니다.
그린 그림을 정보를 볼 수 있는 리스트와 그린그림을 다시 그려주는 모두보기와 삭제, 모두삭제 기능을 넣었습니다.
클래스 상속도와 포함(uml)

#include "VerticalLine.h"
#include "WideHorizontalLine.h"
#include "SolidRectangle.h"
#include "SolidSquare.h"
#include "UprightTriangle.h"
#include "FlippedTriangle.h"
#include "Parallelogram.h"


class DrawingList
{
DrawingObject* top;
public:
DrawingList();
DrawingObject* gettop();
void settop(DrawingObject* _top);

void insert(int _id);
void topnull();

void showall();
void showlist();
void showone(int _id);
void delone(int _id);



};


#pragma once
#include
using std::cout;
using std::endl;
using std::cin;

class DrawingObject
{
DrawingObject* next;
int id;
char pattern;

public:
DrawingObject();
void setid(int _id);
int getid();
char getpattern();
void setpattern(char _pattern);
virtual void printinfo();
virtual void draw();
void setnext(DrawingObject* _next);
DrawingObject* getnext();
};


#pragma once
#include "DrawingObject.h"

class Line : public DrawingObject
{
int length;
public:
int getlength();
void setlength(int _length);
virtual void printinfo();
virtual void draw();
};


#include "HorizontalLine.h"
void HorizontalLine::printinfo()
{
cout<<"==========================================================================="< cout<<"HorizontalLine"< cout<<"id = "< cout<<"length = "< cout<<"pattern = "< cout<<"==========================================================================="< cout<<"\n";
}

void HorizontalLine::draw()
{
int i;
cout<<"===========================================================================\n";
for(i=0 ; i < getlength() ; i++)
{
cout< }
cout<<"\n===========================================================================\n\n";
}
  • 가격2,000
  • 페이지수20페이지
  • 등록일2009.01.11
  • 저작시기2008.12
  • 파일형식압축파일(zip)
  • 자료번호#514419
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니