線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:883
推到 Plurk!
推到 Facebook!

Please help me on Pascal / Delphi.

尚未結案
turbomen
一般會員


發表:5
回覆:4
積分:1
註冊:2009-04-04

發送簡訊給我
#1 引用回覆 回覆 發表時間:2009-04-08 06:37:08 IP:122.57.xxx.xxx 訂閱
I want to write a menu driven program that allows a user to set up and run a Game Show.  The minimum requirements are a menu system that allows a user to:

1. List all the contestants.

The following is my answer in menu system:-

Program Student_millionaire;
{$APPTYPE CONSOLE}
uses
SysUtils, OurCrt;
Var User_Choice:Integer;
Procedure ContestantsList;
Begin
WriteLn('1 pressed,listing all the contestants...');
ReadLn;
End;
Procedure Generate10finalists;
Begin
WriteLn('2 pressed,generating the 10 finalist''s numbers...');
ReadLn;
End;
Procedure UpdateFinalists;
Begin
WriteLn('3 pressed,finding and listing the finalists...');
ReadLn;
End;
Procedure ChangeDetails;
Begin
WriteLn('4 pressed,changing the phone a friend details...');
ReadLn;
End;
Procedure EnrolContestant;
Begin
WriteLn('5 pressed,enroling a new contestant...');
ReadLn;
End;
Procedure GetOutOfHere;
Begin
WriteLn('6 pressed,exiting...');
Sleep(1000);
End;
Begin
User_Choice:=0;
While User_Choice <> 6 Do Begin
ClrScr;
WriteLn('Please enter an integer in the range 1...6');
WriteLn;
WriteLn(' 1 List all the contestants');
WriteLn(' 2 Generate the 10 finalist''s numbers');
WriteLn(' 3 Find and list the finalists');
WriteLn(' 4 Change the phone a friend details');
WriteLn(' 5 Enrol a new contestant');
WriteLn(' 6 Exit');
WriteLn;
ReadLn(User_Choice);
Case (User_Choice) of
1:ContestantsList;
2:Generate10finalists;
3:UpdateFinalists;
4:ChangeDetails;
5:EnrolContestant;
6:GetOutOfHere;
Else
Begin
WriteLn('Wrong Number..');
WriteLn('Exiting...');
End;
End;
End;
End.


// How can I list all the contestants?
st33chen
尊榮會員


發表:15
回覆:591
積分:1201
註冊:2005-09-30

發送簡訊給我
#2 引用回覆 回覆 發表時間:2009-04-08 08:20:31 IP:122.116.xxx.xxx 未訂閱
hello,

which IDE are you using?
why don't you use VCL controls to simplify the programming process?
------
IS IT WHAT IT IS
我是 李慕白 請倒著唸.
又想把老話拿出來說, 請用台語發音 : 專家專家全是ROBOT CAR (滷肉腳啦);
都已接手這麼久了, 績效還是那麼爛, 講話還那麼大聲.
turbomen
一般會員


發表:5
回覆:4
積分:1
註冊:2009-04-04

發送簡訊給我
#3 引用回覆 回覆 發表時間:2009-04-08 08:45:58 IP:202.49.xxx.xxx 訂閱
Sorry, would you mind telling me what is the meaning of IDE and VCL Control?
Cheers,
Tony


Coffee
版主


發表:31
回覆:878
積分:561
註冊:2006-11-15

發送簡訊給我
#4 引用回覆 回覆 發表時間:2009-04-08 11:46:34 IP:59.124.xxx.xxx 訂閱
三篇都是求檔文,連Console跟Win32都搞不清楚,標題都是Please Help me on Pascal
三篇的內容都是作業,而且還是站上查得到source code的作業....
------
不論是否我發的文,在能力範圍皆很樂意為大家回答問題。
為了補我的能力不足之處,以及讓答案可以被重複的使用,希望大家能儘量以公開的方式問問題。
在引述到我的文時自然會儘量替各位想辦法,謝謝大家!
turbomen
一般會員


發表:5
回覆:4
積分:1
註冊:2009-04-04

發送簡訊給我
#5 引用回覆 回覆 發表時間:2009-04-08 14:55:39 IP:202.49.xxx.xxx 訂閱
Sorry, what about my problem?? And I am not familiar in Chinese language... 


系統時間:2024-05-19 13:42:33
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!