<output id="r87xx"></output>
    1. 
      
      <mark id="r87xx"><thead id="r87xx"><input id="r87xx"></input></thead></mark>
        •   

               當(dāng)前位置:首頁>軟件介紹>C語言做個小型商品銷售管理系統(tǒng) 查詢:
               
          C語言做個小型商品銷售管理系統(tǒng)

            名易軟件名易小型商品信息管理系統(tǒng)

            名易軟件設(shè)計了一個商品信息管理系統(tǒng),模擬超市商品管理。

            對商品信息進(jìn)行分類:日用品,食品,電器

            各類商品包括的信息有:編號,商品名稱,商品類別,產(chǎn)地,供貨商,單價,庫存數(shù)量,采購日期。

            系統(tǒng)實現(xiàn)下述功能:

            (1)能錄入商品信息

            (2)能對商品信息進(jìn)行查詢

            可以按編號,按商品名稱,按商品類別,按供貨商,按產(chǎn)地進(jìn)行查詢

            (3)可以對商品信息進(jìn)行修改,刪除

            (4)可以對新商品進(jìn)行入庫登記

            要求:界面友好,易于操作,采用二進(jìn)制文件存儲數(shù)據(jù)。

            名易軟件小型

            設(shè)計一個商品銷售系統(tǒng),模擬超市商品銷售流程。

            銷售單包含的信息如下:流水號,商品編號,銷售數(shù)量,銷售單價,銷售日期,銷售人員

            系統(tǒng)實現(xiàn)下述功能:

            (1)商品銷售:

            要求:輸入銷售單,根據(jù)商品編號,讀取并顯示磁盤文件中的商品信息,根據(jù)銷售數(shù)量,修改庫存,

            (2)商品銷售信息查詢:

            a)根據(jù)商品編號查詢

            b)根據(jù)銷售日期查詢

            c)根據(jù)銷售人員查詢

            (3)統(tǒng)計

            a)日銷售額b)月銷售額c)季銷售額d)月度銷售排名e)。。。

            (4)庫存信息提醒

          我們來看下名易軟件商品管理系統(tǒng)的代碼:     具體的,稍微改一下就可以了!

            #includestdio.h*IO函數(shù)*

            #includestdlib.h*其它說明*

            #includestring.h*字符串函數(shù)*

            #includeconio.h*屏幕操作函數(shù)*

            #includemem.h*內(nèi)存操作函數(shù)*

            #includectype.h*字符操作函數(shù)*

            #includealloc.h*動態(tài)地址分配函數(shù)*

            structscore

            {

            intmingci;

            charxuehao[8];

            charmingzi[20];

            floatscore[6];

            }data,info[1000];

            inti,j,k=0;

            chartemp[20],ch;

            FILE*fp,*fp1;

            voidshuru()

            {

            if((fp=fopen(s_score.txt,ab+))==NULL)

            {

            printf(cannotopenthisfile.n);

            getch();exit(0);

            }

            for(i=0;i=1000;i++)

            {

            printf(nPleaseshuruxuehao:);

            gets(data.xuehao);

            printf(Pleaseshurumingzi:);

            gets(data.mingzi);

            printf(Pleaseshuruyuwenscore:);

            gets(temp);data.score[0]=atof(temp);

            printf(Pleaseshurushuxuescore:);

            gets(temp);data.score[1]=atof(temp);

            printf(Pleaseinputyingyuscore:);

            gets(temp);data.score[2]=atof(temp);

            printf(Pleaseshuruwuliscore:);

            gets(temp);data.score[3]=atof(temp);

            printf(Pleaseshurhuaxuescore:);

            gets(temp);data.score[4]=atof(temp);

            data.score[5]=data.score[0]+data.score[1]+data.score[2]+data.score[3]+data.score[4];

            fwrite(data,sizeof(data),1,fp);

            printf(another?yn);

            ch=getch();

            if(ch=='n'||ch=='N')

            break;

            }fclose(fp);

            }

            voidxianshi()

            {

            floats;intn;

            if((fp=fopen(s_score.txt,rb+))==NULL)

            {

            printf(Cannotreadingthisfile.n);

            exit(0);

            }

            for(i=0;i=1000;i++)

            {

            if((fread(info[i],sizeof(info[i]),1,fp))!=1)

            break;

            }

            printf(nxuehaomingziyuwenshuxueyingyuwulihuauxuezhongfenn);

            for(j=0,k=1;j

            {

            info[j].mingci=k;

            printf(%6s%8s%3.1f%3.1f%3.1f%3.1f%3.1f%3.1fn,info[j].xuehao,info[j].mingzi,info[j].score[0],info[j].score[1],info[j].score[2],info[j].score[3],info[j].score[4],

            info[j].score[5]);

            }

            getch();

            fclose(fp);

            }

            voidxiugai()

            {

            if((fp=fopen(s_score.txt,rb+))==NULL||(fp1=fopen(temp.txt,wb+))==NULL)

            {

            printf(Cannotopenthisfile.n);

            exit(0);

            }

            printf(nPLeaseshuruxiugaixuehao:);

            scanf(%d,i);getchar();

            while((fread(data,sizeof(data),1,fp))==1)

            {

            j=atoi(data.xuehao);

            if(j==i)

            {

            printf(xuehao:%snmingzi:%sn,data.xuehao,data.mingzi);

            printf(Pleaseshurumingzi:);

            gets(data.mingzi);

            printf(Pleaseshuruyuwenscore:);

            gets(temp);data.score[0]=atof(temp);

            printf(Pleaseshurushuxuescore:);

            gets(temp);data.score[1]=atof(temp);

            printf(Pleaseinputyingyuscore:);

            gets(temp);data.score[2]=atof(temp);

            printf(Pleaseinputwuliscore:);

            gets(temp);data.score[3]=atof(temp);

            printf(Pleaseinputhuaxuescore:);

            gets(temp);data.score[4]=atof(temp);

            data.score[5]=data.score[0]+data.score[1]+data.score[2]+data.score[3]+data.score[4];

            }fwrite(data,sizeof(data),1,fp1);

            }

            fseek(fp,0L,0);

            fseek(fp1,0L,0);

            while((fread(data,sizeof(data),1,fp1))==1)

            {

            fwrite(data,sizeof(data),1,fp);

            }

            fclose(fp);

            fclose(fp1);

            }

            voidchazhao()

            {

            if((fp=fopen(s_score.txt,rb))==NULL)

            {

            printf(nCannotopenthisfile.n);

            exit(0);

            }

            printf(nPLeaseshuruxuehaochakan:);

            scanf(%d,i);

            while(fread(data,sizeof(data),1,fp)==1)

            {

            j=atoi(data.xuehao);

            if(i==j)

            {

            printf(xuehao:%smingzi:%snyuwen:%fnshuxue:%fnyingyu:%fnwuli:%fnhuaxue:%fn,data.xuehao,data.mingzi,data.score[0],data.score[1],data.score[2],data.score[3],data.score[4],data.score[5]);

            }getch();

            }

            }

            voidshanchu()

            {

            if((fp=fopen(s_score.txt,rb+))==NULL||(fp1=fopen(temp.txt,wb+))==NULL)

            {

            printf(nopenscore.txtwasfailed!);

            getch();

            exit(0);

            }

            printf(nPleaseinputIDwhichyouwanttodel:);

            scanf(%d,i);getchar();

            while((fread(data,sizeof(data),1,fp))==1)

            {

            j=atoi(data.xuehao);

            if(j==i)

            {

            printf(Anykeywilldeletit.n);

            getch();

            continue;

            }

            fwrite(data,sizeof(data),1,fp1);

            }

            fclose(fp);

            fclose(fp1);

            remove(s_score.txt);

            rename(temp.txt,s_score.txt);

            printf(Datadeletwassuccesful!n);

            printf(Anykeywillreturntomain.);

            getch();

            }

            main()

            {

            while(1)

            {

            clrscr();*清屏幕*

            gotoxy(1,1);*移動光標(biāo)*

            textcolor(YELLOW);*設(shè)置文本顯示顏色為黃色*

            textbackground(BLUE);*設(shè)置背景顏色為藍(lán)色*

            window(1,1,99,99);*制作顯示菜單的窗口,大小根據(jù)菜單條數(shù)設(shè)計*

            clrscr();

            printf(*************welcometousestudentmanage******************n);

            printf(*************************menu********************************n);

            printf(*=========================================================*n);

            printf(*1shuru2xiugai*n);

            printf(*3shanchu4chazhao*n);

            printf(*5xianshi6exit*n);

            printf(**n);

            printf(*---------------------------------------------------------*n);

            printf(Pleaseinputwhichyouwant(1-6):);

            ch=getch();

            switch(ch)

            {

            case'1':shuru();break;

            case'2':xiugai();break;

            case'3':shanchu();break;

            case'4':chazhao();break;

            case'5':xianshi();break;

            case'6':exit(0);

            default:continue;

            }

            }

            }


          協(xié)同OA辦公系統(tǒng)中的業(yè)務(wù)申請管理流程圖設(shè)計是什么流程管理系統(tǒng)設(shè)計
          oa工作流管理軟件oa系統(tǒng)中的流程管理
          oa系統(tǒng)審批OA系統(tǒng)知識庫
          辦公室oa辦公自動化系統(tǒng)的業(yè)務(wù)流程管理軟件系統(tǒng)設(shè)計手機(jī)oa辦公軟件下載
          流程設(shè)計管理系統(tǒng)oa辦公審批系統(tǒng)
          oa流程管理軟件商品管理系統(tǒng):療愈中層之傷
          商品管理系統(tǒng):創(chuàng)業(yè)人,是什么迷住了你的雙眼?商品管理系統(tǒng):管理中的“動”與“靜”
          運營管理系統(tǒng)實現(xiàn)企業(yè)價值最大的方式怎樣用excel數(shù)據(jù)庫建立商品管理系統(tǒng)
          信息發(fā)布:廣州名易軟件有限公司 http://m.jetlc.com
          • 勁爆價:
            不限功能
            不限用戶
            1998元/年

          • 微信客服

            <output id="r87xx"></output>
          1. 
            
            <mark id="r87xx"><thead id="r87xx"><input id="r87xx"></input></thead></mark>
              • 大雞巴弄得我好舒服黃片 | 九九操| 国语对白乱妇激情视频 | 性爱成人网 | 成人黄性视频 免费恩师情深 | 探花无码 | 男人天堂婷婷 | 婷婷深爱激情网 | 麻豆成人在线视频 | 青青草原视频精品在线免费观看 |