摘要
很多票据和经济合同都需要打印大写金额。文章首先阐释金额大写的书写规则,然后提出采用面向对象程序设计思想实现大写金额转换方法,并基于类用C#定义和实现金额转换算法。该算法具有可重用性强、可扩充性好、算法简单易懂等特点。
Many bills and economic contracts need to print capitalized amounts.This paper first discussed the writing rules of capital amount,then proposed a capital amount conversion method of using object-oriented programming idea,and designed and implemented the algorithm based on class in C#.The algorithm has the advantages of strong reusability,good expandability and easier to be understood.
作者
娄七明
杨志金
孙建洪
张红伟
LOU Qi-ming;YANG Zhi-jin;SUN Jian-hong;ZHANG Hong-wei(Department of Engineering,Honghe University,Mengzi 661100,China)
出处
《红河学院学报》
2020年第2期138-140,共3页
Journal of Honghe University
关键词
面向对象程序设计
金额转换
类
对象
Object-oriented program
Amount conversion
Class
Object