文件名称:goods
介绍说明--下载内容均来自于网络,请自行研究使用
包含cpp文件,说明文件,exe文件。C++程序,模拟商店货物管理。将商店的货物,定义为一个货物数组类,数组对象动态建立,初始为20个元素,不够用时扩充一倍。
用二进制数据文件建立数组元素对象,要求放在构造函数中,而文件的保存和关闭放在析构函数中。第一次运
行时,建立空的数据文件,由键盘输入建立数组元素对象,并写入文件,程序退出时,关闭文件;下一次运行
就可以由文件构造对象,恢复前一次做过的工作-contains documents, notes, exe. C procedures, shops cargo management. To store the goods, defined as an array of goods category, the establishment of dynamic object array, the initial elements of the 20, not enough time doubled. The binary data files to establish array elements targets, on Constructors, and the preservation of documents and closure on the destructor. Run for the first time, the establishment of air data files from the keyboard input array elements to establish targets, and write documents, procedures to pull out, close the file; Next run by the paper on the object, before a resumption of the work done
用二进制数据文件建立数组元素对象,要求放在构造函数中,而文件的保存和关闭放在析构函数中。第一次运
行时,建立空的数据文件,由键盘输入建立数组元素对象,并写入文件,程序退出时,关闭文件;下一次运行
就可以由文件构造对象,恢复前一次做过的工作-contains documents, notes, exe. C procedures, shops cargo management. To store the goods, defined as an array of goods category, the establishment of dynamic object array, the initial elements of the 20, not enough time doubled. The binary data files to establish array elements targets, on Constructors, and the preservation of documents and closure on the destructor. Run for the first time, the establishment of air data files from the keyboard input array elements to establish targets, and write documents, procedures to pull out, close the file; Next run by the paper on the object, before a resumption of the work done
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : 41695066goods.rar 列表 googs.cpp 说明.txt goods.exe