超市商品管理系統(課程設計)

2021-08-13 06:58:13 字數 2272 閱讀 7457

#include #include #include #include #include //用getch();當使用者按下某個字元時,函式自動讀取,無需按回車。

using namespace std;

class goods

int kind;

char name[20];//名字

char id[20];//編號

char place[10];//生產地

char brand[10];//品牌

float buyprice;  //進貨價;

float saleprice; //賣出價;

int amount;  //存貨數量;

int amount1; //售貨數量;

int profit;  //淨利潤;

goods * next;

void inputall()

void inputkind()

void inputname()

void inputid()

void inputbuyprice()

void inputsaleprice()

void inputamount()

void inputprofit()

void inputplace()

void inputbrand()

void inputother()

void readfile(istream & in) //將輸入的東西存入檔案

void show()

cout<<"共有"showmenu(1);

end->inputkind();

dowhile(findid(end->id));

end->inputother();

end->next = new goods;

end=end->next;

cout<<"新增成功!"next)//匹配成功則返回上乙個指標,不成功就返回空

if(!strcmp(p->next->name,name))return p;

return null;

}  goods *findid(char * id)

};goodsmessage::goodsmessage()                 //﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌建構函式﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌

in.close();

cout<<"\t\t\t\t讀取商品資訊成功!"<<"\n"delete head,end; } 

void goodsmessage::showmenu(int n)//選單      //﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌選單﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌

else

else

else

int goodsmessage::listcount()       //統計當前鍊錶的記錄總數,返回乙個整數

return n; } 

void goodsmessage::paixu()       //﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌排序商品﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌﹌

}display();

out.open("進貨價.txt");

for(goods *q=head->next;q!=end;q=q->next)

outout.close();

cout<<"儲存資訊成功"next)

for(k=p->next;k!=end;k=k->next)

}display();

out.open("庫存量.txt");

for(goods *q=head->next;q!=end;q=q->next)

outout.close();

cout<<"儲存資訊成功"next)

for(k=p->next;k!=end;k=k->next)

}display();

out.open("淨利潤.txt");

for(goods *q=head->next;q!=end;q=q->next)

outout.close();

cout<<"儲存資訊成功"next)

outout.close();

cout<<"儲存資訊成功"<>x;

switch(x)

case 1:

case 2:

case 3:

case 4:

case 5:

case 6:

case 7:

case 8:

}}  return 0;

}

angularjs商品管理系統

入庫 貨物名稱 貨物數量 貨物產地 貨物單價 貨物的生產日期操作 新增產品 貨物名稱 貨物數量 貨物產地 貨物單價 var aa new date scope.counts 按數量正序 按數量倒序 var good 1 scope.goods good 1 scope.xl function els...

人事管理系統課程設計

1 系統功能的基本要求 員工各種資訊的輸入,包括員工的基本資訊 學歷資訊 婚姻狀況資訊 職稱等。員工各種資訊的修改 對於轉出 辭職 辭退 退休員工資訊的刪除 按照一定的條件,查詢 統計符合條件的員工資訊 至少應該包括每個員工詳細資訊的查詢 按婚姻狀況查詢 按學歷查詢 按工作崗位查詢等,至少應該包括按...

課程設計 家譜管理系統

family.h ifndef test define test include include include define maxsize 1000 using namespace std typedef struct sqstring struct tree tree create tree ...