首页 | 本学科首页   官方微博 | 高级检索  
     检索      

基于标准模板库的多边形扫描转换
引用本文:唐永勇,陈国民,杨继平,董建伟.基于标准模板库的多边形扫描转换[J].东华大学学报(自然科学版),2010,36(4).
作者姓名:唐永勇  陈国民  杨继平  董建伟
作者单位:解放军后勤工程学院,重庆,401311
摘    要:多边形扫描转换因采用链表结构而使程序简洁、快速,但链表中指针的操作增加了学习这一内容的难度,影响正常的教学进度.在编程时采用标准模板库(STL)中的链表模板避免了指针操作,而且使程序编写容易和阅读方便.根据相关文献的算法,分别写出了采用自定义链表方式和使用链表模板方式实现多边形扫描转换的完整C++程序.实例对比表明,采用标准模板库使程序调试方便和运行稳定.

关 键 词:多边形扫描转换  标准模板库(STL)  链表结构  指针

A Program of Polygon Scan Conversion Based on the Standard Template Library
TANG Yong-yong,CHEN Guo-min,YANG Ji-ping,DONG Jian-wei.A Program of Polygon Scan Conversion Based on the Standard Template Library[J].Journal of Donghua University,2010,36(4).
Authors:TANG Yong-yong  CHEN Guo-min  YANG Ji-ping  DONG Jian-wei
Institution:TANG Yong-yong,CHEN Guo-min,YANG Ji-ping,DONG Jian-wei(Logistical Engineering University,Chongqing 401311,China)
Abstract:With linked list structure,the polygon scan conversion procedure becomes concise and fast,but operation of the list pointers increases difficulty of learning this content and affects normal teaching schedule.With the list template of standard template library(STL),operating pointer being avoided of course,the program is easy to read and write.According to the related literature algorithm,the polygon scanning conversion's C++ programs are written with custom list method and list template method separately.By...
Keywords:polygon scan conversion  standard template library(STL)  linked list structure  pointer  
本文献已被 CNKI 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号