摘要
程序模拟了两数相乘的人工竖式算法,利用C++标准模板库中string类接收键盘输入的大数,并用标准模板库vector类存储大数和相乘,解决了基本数据类型表示大数位数有限的问题。
The program simulates the artificial vertical calculation method of multiplication of two numbers,using the string class of C++standard template library to receive the large number of keyboard input.The vector class of standard template library is used to store large numbers and multiply them,which solves the digits limiting problem for the basic data type to represent the large number.
作者
孔柱新
Kong Zhuxin(Dean's office,Changzhou Vocational Institute of Mechatronic Technology,Changzhou,Jiangsu 213164,China)
出处
《计算机时代》
2022年第3期81-82,85,共3页
Computer Era