摘要
用标准C语言编写文本文件格式的报表,一直是一个难点,因为缺乏已有的报表生成工具,生成每一个特定的报表,均需大量的程序处理;而且在程序中调试报表外观,例如行与行之间的对齐,相当的不直观。文中介绍了以数据驱动为原理,Unix系统下C语言报表的一种实现方法:编制一报表工具,利用此工具,添加新的报表格式文件,即可生成需要的报表,修改原有的报表格式文件,即可达到对报表的修正。
It has been very difficult for a long time to create reports of text format using standard language C, since there is no report tool available. A lot of program lines are needed to create a report. What's more, it is difficult to debug the report's format, for example, the format among the lines. This paper mainly tells a realization of data-driven reports, using language C under UNIX system. Create a report tool, then use this tool and report format files newly added to create reports needed. Change the report format files, then the report will be changed.
出处
《微机发展》
2003年第12期102-104,共3页
Microcomputer Development