請高手幫忙用c語言做酒店管理系統

時間 2021-10-15 00:22:03

1樓:林明爐

////////////////////////////

//hotel manager system

//design by wongswoon

//08.11.9

////////////////////////////

#include

#include

#include

//////////////////////////

struct customercustomer[5][301];

//////////////////////////

struct roomroom[5];

///////////////////////////

void initroom_customer()

}///////////////////////////////////

int isempty(struct customer c)

//////////////////////////////////

void orderroom(char c)

break;

case 'b':

break;

case 'c':

break;

case 'd':

break;}}

//////////////////////////

void findcustomer()

if(flag)

break;

}if(i==0)

printf("this gay is not found!\n");

else

}///////////////////////////////////

struct customer * find_with_roomkey(int n)

if(flag)

break;

}return &customer[i][j];*/

}//////////////////////////////////

long checkout()

else

printf("the room-%d customer's info\n",find_with_roomkey(n)->roomnum);

printf("%d\t\t%s\t%d\t%d\t%d.%d\n",find_with_roomkey(n)->roomnum,

find_with_roomkey(n)->name,find_with_roomkey(n)->id,find_with_roomkey(n)->tel,

find_with_roomkey(n)->time.tm_mon,find_with_roomkey(n)->time.tm_mday);

sum=room[find_with_roomkey(n)->roomnum/1000].price*(s_m*31+s_d-2);

room[find_with_roomkey(n)->roomnum/1000].remain_num++;

strcpy(find_with_roomkey(n)->name,"null");

find_with_roomkey(n)->id=0;

find_with_roomkey(n)->roomnum=0;

find_with_roomkey(n)->tel=0;

find_with_roomkey(n)->time.tm_mon=1;

find_with_roomkey(n)->time.tm_mday=1;

return sum;

}////////////////////////////////////////////

void evaluate()

///////////////////////////////

void initcmd()

}//////////////////////////////

int main()

2樓:

每一步都要寫清楚原理?

是想拿去交的嗎?

50分?

太少.加分就寫.

3樓:匿名使用者

在這個經濟社會裡誰還會免費的幫人家出這麼大的力啊?你那酒店管理系統要求再簡單也要花時間啊!再說你要它的原理,這不是要人家的智慧財產權嗎?也許人家開發出來把軟體打包給你還有可能。

4樓:斜塘拂柳

希望不大……

估計得花錢買

c語言習題請高手幫忙解答,C語言習題請高手幫忙解答。

1 沒答案,應該是a2,b 5 2 a3 沒答案,因為 u輸出a的值不確定4 a5 c 6 b7 沒答案,應該是scanf f c 8 c9 b 1 沒答案如為printf a d,b d n a,b 選 d a d,b d 2 b3 c 4 c5 c 6 d7 a 我想答案應該是scanf f c...

c語言的多選問題,高手幫忙做下,C語言的多選問題,高手幫忙做下

及時澍雨 1 下列常數中能作為c的常量的是 a 0x4 b 2.5e 2 c 33 d 03a 選abc,因為0開頭的數字為八進位制數,僅有0 7,木有a這個數 2 下列計算機語言中,cpu不能直接執行的是 a 自然語言 b 高階語言 c 組合語言 d 機器語言 選abc,高階語言,編譯器會轉化為低...

高分懸賞,C語言課設,排序問題,高手請幫忙

插入排序 include include include define max 100 int main printf n for i 2 i n i for j 1 j n j printf 3ld a j printf n system pause return 0 起泡排序 include i...