From a66419efaea70ee6f51e5acb5898fd7dcbf362f8 Mon Sep 17 00:00:00 2001 From: 201816040230 <56499333+201816040230@users.noreply.github.com> Date: Thu, 31 Oct 2019 23:56:05 +0800 Subject: [PATCH 1/2] 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(); + +} From f2ce641b95a8de37cee6f3b09261371909718343 Mon Sep 17 00:00:00 2001 From: 201816040230 <56499333+201816040230@users.noreply.github.com> Date: Fri, 1 Nov 2019 00:20:20 +0800 Subject: [PATCH 2/2] Delete Ex03_13.cpp --- 201816040230/Ex03_13/Ex03_13.cpp | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 201816040230/Ex03_13/Ex03_13.cpp diff --git a/201816040230/Ex03_13/Ex03_13.cpp b/201816040230/Ex03_13/Ex03_13.cpp deleted file mode 100644 index feef1f9..0000000 --- a/201816040230/Ex03_13/Ex03_13.cpp +++ /dev/null @@ -1,25 +0,0 @@ -#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(); - -}