From 462896bb2a61f179ee65de3e899d39a246e1eb35 Mon Sep 17 00:00:00 2001 From: 201816040230 <56499333+201816040230@users.noreply.github.com> Date: Thu, 31 Oct 2019 22:56:23 +0800 Subject: [PATCH] Create Ex03_13.cpp This is my assignment_03 Student ID: 201816040230 --- 201816040230/Ex03_13/Ex03_13.cpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 201816040230/Ex03_13/Ex03_13.cpp diff --git a/201816040230/Ex03_13/Ex03_13.cpp b/201816040230/Ex03_13/Ex03_13.cpp new file mode 100644 index 0000000..feef1f9 --- /dev/null +++ b/201816040230/Ex03_13/Ex03_13.cpp @@ -0,0 +1,25 @@ +#include +#include"Invoice.h" +using namespace std; + + +int main() +{ + Invoice Invoice("","" , 0,0 ); + string number,discription; + int sales,price; + cout<<"零件号:"; + getline(cin,number);//输入零件号 + cout<<"零件描述:"; + getline(cin,discription);//输入零件描述 + cout<<"商品售出量:"; + cin>>sales;//输入售出量 + cout<<"商品单价:"; + cin>>price;//输入单价 + Invoice.setPartNumber(number); + Invoice.setPartDescription(discription); + Invoice.setCommoditySales(sales); + Invoice.setCommodityPrice(price); + Invoice.displayMessage(); + +}