Description: The program implements Bresenham algorithm for drawing a straight line, the four quadrants of the problem through the exchange of endpoint methods combined into one, four-quadrant problems. Re-use of sign variables, unified into a problem. Also taking into account the slope of the " = 1," 1, does not exist, ultimately, the issue was divided into three cases.
To Search:
File list (Check if you may need any files):
马超直线插补\HomeWork1.exe
............\源代码\HomeWork1.aps
............\......\HomeWork1.clw
............\......\HomeWork1.cpp
............\......\HomeWork1.dsp
............\......\HomeWork1.dsw
............\......\HomeWork1.h
............\......\HomeWork1.ncb
............\......\HomeWork1.opt
............\......\HomeWork1.plg
............\......\HomeWork1.rc
............\......\HomeWork1Doc.cpp
............\......\HomeWork1Doc.h
............\......\HomeWork1View.cpp
............\......\HomeWork1View.h
............\......\HomeWork1View.ncb
............\......\HomeWork1View.opt
............\......\HomeWork1View.plg
............\......\MainFrm.cpp
............\......\MainFrm.h
............\......\ReadMe.txt
............\......\..lease\HomeWork1.exe
............\......\.......\HomeWork1.obj
............\......\.......\HomeWork1.pch
............\......\.......\HomeWork1.res
............\......\.......\HomeWork1Doc.obj
............\......\.......\HomeWork1View.obj
............\......\.......\MainFrm.obj
............\......\.......\StdAfx.obj
............\......\.......\vc60.idb
............\......\res\HomeWork1.ico
............\......\...\HomeWork1.rc2
............\......\...\HomeWork1Doc.ico
............\......\...\Toolbar.bmp
............\......\Resource.h
............\......\StdAfx.cpp
............\......\StdAfx.h
............\直线插补.doc
............\源代码\Release
............\......\res
............\源代码
马超直线插补