當前位置:首頁 » 操作系統 » 消費管理源碼

消費管理源碼

發布時間: 2022-03-16 01:01:37

Ⅰ 誰能給我講解下Visual C#2005資料庫開發經典案例中餐館消費管理系統的代碼啊!

樓主,建議你還是找自己的同學或者老師給你講解吧。

一個管理系統,代碼何其的多啊,在這里只言片語,是制定弄不明白的。

還是面對面得來的最有效果。

Ⅱ 求C++ 客戶消費積分管理系統 源代碼

需求不夠明確啊,再描述具體點。

Ⅲ 求一款會員卡消費管理系統源碼 C/S的

「伊特會員管理軟體」是一款適合各行各業的會員管理軟體,有會員消費、積分、儲值、兌換、換卡、生日提醒等功能,可開啟商品庫存、進貨和退貨功能。

Ⅳ 求一個個人消費管理系統C++的程序 急用

這回可以了!!!!!!!!

給你發站內信了.

Ⅳ 誰能給我個簡單的會員管理系統代碼

答案

創建鏈表
void Create(TeacherGZ &
cout<<"\n\n請輸入您的系別/部門:";
cin>>top->departme
cout<<"\n請輸入您的姓名:";
cin>>top->name;
cout<<"\n請輸入您QQ:";
cin>>top->base_salary;
cout<<"\n請輸入您的E-mail:";
cin>>top->post_salary;
TeacherGZ Lookup(TeacherGZ head)
{
TeacherGZ here=head;
int no,number;
string trs;
if(here==NULL)
{
cout<<"\t\t現無任何記錄!\n";
}
else
{
cout<<"\n1.按姓名 2.按學號";
cout<<"\n\n請選擇:";
cin>>no;
switch(no)
{ case 1:
cout<<"\n\n請輸入要查找的姓名:";
cin>>trs;
while(here->name!=trs&&here->next!=NULL)
here=here->next;
if(here->name==trs)
else
cout
while(here->teacherNO!=number&&here->next!=NULL)
here=here->next

Ⅵ 學生個人消費管理系統(C語言編程)的源程序!(要好運行的哦!)

這你就別想了。這種在程序在淘寶上賣100元,應該沒人會送你這100元的東西的。尤其是你連分都不給一分!!!

Ⅶ 財務管理系統源代碼<可追加積分>

這個不好說 我建議你先重裝IIS 之後在我的電腦-管理-本地用戶和組-用戶-IWAM看看是不是有帳戶已停用 勾去了就可以了
裝好數據源是就是SQL的伺服器名 你是個人用的話也就是本地計算機的名字 SA口令你不要填就可以了 然後點旁邊測試
帳套就是用ADMIN建的 但是進帳套卻是要用操作員的身份進去 系統默認是demo 密碼大寫DEMO 這樣就可以了

Ⅷ c++大學生個人消費管理系統 大神救命!!急用!!!!

工大課設吧,我這里有,你看看有沒有幫助,,很多呀,我要怎麼給你,給你分享吧。。

直接給你吧。。。。。。希望對你有所幫助!!!!!

#include <stdio.h>
#include <stdlib.h>
#define FilePath1 "Myinfor.dat"
#define FilePath2 "Myinfor.txt"
#define Status int
#define OK 1
#define Error 0
#define NotFound 2
typedef struct Infor{
int month;
int spxf;
int fz;
int znjy;
int sdf;
int ylf;
int cx;
int byzhf;
} Infor,*Infor1;
typedef struct pType{
int no;
int data;
}pType;
void menu(void);
void input1(Infor *newI,int mon);
void input(Infor *newI);
void writeinfor(Infor *newI);
void changeFormat(void );
Status search(Infor *a,int mon);
void paixu(Infor *a);
void modify(Infor *a,int mon);
void delRecord(int mon);
void xuanze(int item);
void xiugai(int m);
int panan(Infor *a,int mon);
void main()
{ while(1)
{ menu(); }
}
void menu(void)/*菜單*/
{ int item;
printf("\n………\"我的大學\"生活消費管理系統…………\n\n");
printf("\t\t1.…………錄 入 數 據………….\n");
printf("\t\t2.…………查 看 數 據………….\n");
printf("\t\t3.…………修 改 數 據………….\n");
printf("\t\t4.…………查 詢 數 據………….\n");
printf("\t\t5.…………排 序 數 據………….\n");
printf("\t\t6.…………刪 除 數 據………….\n");
printf("\t\t0.…………退 出 系 統………….\n");
printf("請輸入要進行的操作: " );
scanf("%d",&item);
if(item>6 || item<-1)
{ printf("請重新輸入要進行的操作: " );
menu(); }
else xuanze( item); }
int panan(Infor *a,int mon)
{ int item;
FILE *fp;
fp=fopen(FilePath1,"ab+");
if(fp==NULL)
{ printf("無法創建文件:%s",FilePath1);
exit(0); }
if(mon<=12)
{ item=search(a,mon);
while(item==OK)
{ printf("輸入月份已存在請重新輸入要建立的月份:\n");
scanf("%d",&mon);
item=search(a,mon); } }
else{
printf("您輸入的月份有誤請重新輸入:\n");
scanf("%d",&mon);
panan(a,mon); }
fclose(fp);
return mon; }
void xuanze(int item)
{ int mon;
Infor *a;
a=(Infor *)malloc(sizeof(Infor));
switch(item)
{ case 0: //getchar();/*退出*/
//getchar();
printf("\n ……………………歡迎使用…………………………");
printf(" \n\t.\t\t\t\t\t\t.");
printf(" \n\t.\t\t\t\t\t\t.");
printf(" \n\t.\t\t\t\t\t\t.");
printf(" \n\t.\t\t\t\t\t\t.");
printf(" \n\t. \"我的大學\"生活消費管理系統 .");
printf(" \n\t.\t\t\t\t\t\t.");
printf(" \n\t.\t\t\t\t\t\t.");
printf(" \n\t.\t\t\t\t\t\t.");
printf(" \n\t.\t\t\t\t\t\t.");
printf(" \n\t. 歡迎下次使用 .");
printf(" \n\t.\t\t\t\t\t\t.");
printf(" \n\t.\t\t\t\t\t\t.");
printf(" \n\t.\t\t\t\t\t\t.");
printf(" \n\t.\t\t\t\t\t\t.");
//printf("\n\"我的大學\"生活消費管理系統\n\n\n\n");
//printf("\t\t\t\t\t\n. 歡迎下次使用 \n\n\n\n");
printf("\n……………………………………………………………\n\n\n\n");
exit(1);
break;
case 1:
printf("請輸入要建立的月份:\n");
scanf("%d",&mon);
mon=panan(a,mon);
input1(a,mon);
writeinfor(a);
break;
case 2:
changeFormat();
break;
case 3:
printf("請輸入要查找的月份:\n");
scanf("%d",&mon);
item=search(a,mon);
mon=a->month;
if (item!=OK) printf("\n沒有符合條件的記錄!\n");
else
{
printf("\n 記錄月份 食品消費 房租 子女教育費用 水電費 醫療費 儲蓄 本月總花費 \n");
printf("------------------------------------------------------- \n");
printf("%7d %8d %8d %8d %8d %8d %8d %8d\n",a->month,a->spxf,a->fz,a->znjy,a->sdf,a->ylf,a->cx,a->byzhf);
input(a);
modify(a,mon); }
break;
case 4:
printf("請輸入要查找的月份:\n");
scanf("%d",&mon);
item=search(a,mon);
if (item!=OK) printf("\n沒有符合條件的記錄!\n");
else{
printf("\n記錄月份 食品消費 房租 子女教育費用 水電費 醫療費 儲蓄 本月總花費 \n");
printf("------------------------------------------------------- \n");
printf("%7d %8d %8d %8d %8d %8d %8d %8d\n",a->month,a->spxf,a->fz,a->znjy,a->sdf,a->ylf,a->cx,a->byzhf);
}
break;
case 5:
printf("請輸入要查找的月份:\n");
scanf("%d",&mon);
item=search(a,mon);
if (item!=OK) printf("\n沒有符合條件的記錄!\n");
else
paixu(a);
break;
case 6:
printf("請輸入要查找的月份:\n");
scanf("%d",&mon);
item=search(a,mon);
mon=a->month;
if (item!=OK) printf("\n沒有符合條件的記錄!\n");
else
{
printf("------------------------------------------------------- \n");
printf("%7d %8d %8d %8d %8d %8d %8d %8d\n",a->month,a->spxf,a->fz,a->znjy,a->sdf,a->ylf,a->cx,a->byzhf);
delRecord(mon); }
break;}
free(a);}
void input1(Infor *newI,int mon)
{ printf("\n請依次輸入數據[說明:中間以空格符隔開]:\n( 食品消費 房租 子女教育費用 水電費 醫療費 儲蓄 )\n");
scanf("%d%d%d%d%d%d",&newI->spxf,&newI->fz,&newI->znjy,&newI->sdf,&newI->ylf,&newI->cx);
newI->month=mon;
newI->byzhf=newI->spxf+newI->fz+newI->znjy+newI->sdf+newI->ylf+newI->cx;
fflush(stdin);}
void input(Infor *newI)
{
printf("\n請依次輸入數據[說明:中間以空格符隔開]:\n( 食品消費 房租 子女教育費用 水電費 醫療費 儲蓄 )\n");
scanf("%d%d%d%d%d%d",&newI->month,&newI->spxf,&newI->fz,&newI->znjy,&newI->sdf,&newI->ylf,&newI->cx);
newI->byzhf=newI->spxf+newI->fz+newI->znjy+newI->sdf+newI->ylf;
fflush(stdin);}
void writeinfor(Infor *newI)
{
FILE *fp;
fp=fopen(FilePath1,"ab+");
if(fp==NULL)
{ printf("無法創建文件:%s",FilePath1);
exit(0);}
fwrite(newI,sizeof(Infor),1,fp);
fclose(fp);
printf("數據錄入成功!\n");}
void changeFormat(void)
{
FILE *fp1,*fp2;
Infor *a;
a=(Infor *)malloc(sizeof(Infor));
fp1=fopen(FilePath1,"rb+");
if(fp1==NULL)
{ printf("無法找到文件:%s\n",FilePath1);
return ;}
fp2=fopen(FilePath2,"wt+");
if(fp2==NULL)
{printf("無法創建文件:%s\n",FilePath2);
return ;
}
//fputs(" \n!@#¥%……&*(&……¥#@@?\"我的大學\"生活消費管理系統!@#¥%……&*(&……¥#@@!n\n",fp2);
fputs("記錄月份 食品消費 房租 子女教育費用 水電費 醫療費 儲蓄 本月總花費 \n",fp2);
fputs("---------------------------------------------------- \n",fp2);
printf("\n記錄月份 食品消費 房租 子女教育費用 水電費 醫療費 儲蓄 本月總花費 \n");
printf("--------------------------------------------------- \n");
rewind(fp1);
fread(a,sizeof(Infor),1,fp1);
while(!feof(fp1))
{printf("%7d %8d %8d %8d %8d %8d %8d %8d\n",a->month,a->spxf,a->fz,a->znjy,a->sdf,a->ylf,a->cx,a->byzhf);
fprintf(fp2,"%7d %8d %8d %8d %8d %8d %8d %8d\n",a->month,a->spxf,a->fz,a->znjy,a->sdf,a->ylf,a->cx,a->byzhf);
fread(a,sizeof(Infor),1,fp1);}
fputs("--------------------------------------------------- \n",fp2);
fputs("關閉本程序繼續原程序!\n",fp2);
fclose(fp1);
fclose(fp2);
system(FilePath2);
remove(FilePath2);}
Status search(Infor *a,int mon)
{
FILE *fp1;
int isfound=0;
//printf("請正確輸入要查詢的月份:");
//scanf("%d",&mon);
fflush(stdin);
fp1=fopen(FilePath1,"rb+");
if(fp1==NULL)
{ printf("無法找到文件:%s\n",FilePath1);
return Error; }
rewind(fp1);
fread(a,sizeof(Infor),1,fp1);
while(!feof(fp1))
{ if(a->month==mon)
{ isfound=1;
Break; }
else
{ isfound=0; }
fread(a,sizeof(Infor),1,fp1);}
fclose(fp1);
if(isfound)
return OK;
else
return NotFound; }
void paixu(Infor *a)
{ int i=0,j=0,flag=0,t;
pType px[8]={{0,0}};
char str[8][14]={"記錄月份","食品消費"," 房租", "子女教育費用", "水電費"," 醫療費"," 儲蓄"," 本月總花費"};
for(;i<8;i++)
px[i].no=i;
px[0].data=a->month;
px[1].data=a->spxf;
px[2].data=a->fz;
px[3].data=a->znjy;
px[4].data=a->sdf;
px[5].data=a->ylf;
px[6].data=a->cx;
px[7].data=a->byzhf;
for(i=1;i<8;i++)
{
flag=0;
for(j=0;j<8-i;j++)
if(px[j].data>px[j+1].data)
{ t=px[j].data;
px[j].data=px[j+1].data;
px[j+1].data=t;
t=px[j].no;
px[j].no=px[j+1].no;
px[j+1].no=t;
flag=1; }
if(flag==0) break;}
printf("\n");
for(i=0;i<8;i++)
{ printf(" %s",str[px[i].no]);}
printf("\n----------------------------------------------------- \n");
for(i=0;i<8;i++)
{printf("%8d ",px[i].data); }
printf("\n");}
void modify(Infor *a,int mon)
{ FILE *fp1,*fp2;
Infor *b;
b=(Infor *)malloc(sizeof(Infor));
fp1=fopen(FilePath1,"rt");
fp2=fopen("temp.dat","wt+");
rewind(fp1);
fread(b,sizeof(Infor),1,fp1);
while (!feof(fp1))
{ if(b->month==mon)
{
fwrite(a,sizeof(Infor),1,fp2);
}
else
{ fwrite(b,sizeof(Infor),1,fp2);
}
fread(b,sizeof(Infor),1,fp1);
}
fclose(fp1);
fclose(fp2);
remove(FilePath1);
rename("temp.dat",FilePath1);
printf("修改數據成功!\n" );
changeFormat();
}
void delRecord(int mon)
{
FILE *fp1,*fp2;
Infor *b;
b=(Infor *)malloc(sizeof(Infor));
fp1=fopen(FilePath1,"rt");
fp2=fopen("temp.dat","wt+");
rewind(fp1);
fread(b,sizeof(Infor),1,fp1);
while (!feof(fp1))
{
if(b->month!=mon)
fwrite(b,sizeof(Infor),1,fp2);
fread(b,sizeof(Infor),1,fp1);
}

fclose(fp1);
fclose(fp2);
remove(FilePath1);
rename("temp.dat",FilePath1);
printf("刪除數據成功!\n" );
changeFormat();
}

熱點內容
c語言挖洞 發布:2024-09-25 18:56:39 瀏覽:925
方舟怎麼在伺服器公屏發消息 發布:2024-09-25 18:48:38 瀏覽:366
幻塔安卓官服哪裡下 發布:2024-09-25 18:47:11 瀏覽:906
安卓手機無線網怎麼增強 發布:2024-09-25 18:46:59 瀏覽:494
md5加密php代碼 發布:2024-09-25 18:39:54 瀏覽:127
gdb83編譯 發布:2024-09-25 18:34:44 瀏覽:520
為什麼安卓不用方舟編譯器 發布:2024-09-25 18:28:52 瀏覽:9
56上傳視頻賺錢 發布:2024-09-25 18:14:06 瀏覽:616
如何恢復安卓手機的照片 發布:2024-09-25 17:50:31 瀏覽:497
可擦除編程 發布:2024-09-25 17:34:36 瀏覽:627