Forum: Pascal and Delphi Jan 4th, 2009 |
| Replies: 11 Views: 1,001 Thanks for the help, some good stuff to learn. However could you please tell me what should go instead of the [a] as this is causing me the most trouble. Thanks |
Forum: Pascal and Delphi Jan 4th, 2009 |
| Replies: 11 Views: 1,001 I dont actually have Pascal on this machine but here's a rough idea
for i:=1 to 7 do
writeln (‘Please enter 7 numbers’)
begin
readln(a[i]);
if [a] (< 1) or > (>7) the
writeln (‘Please... |
Forum: Pascal and Delphi Jan 4th, 2009 |
| Replies: 11 Views: 1,001 I have tried that but the program ran with no effect. I couldnt seem to get the loop to run with the array. Would you be able to show an example of how to validate/ loop with an array no matter how... |
Forum: Pascal and Delphi Jan 4th, 2009 |
| Replies: 11 Views: 1,001 The program first of all didnt recognise the valiation, then it did not work correctly with the array. Thats the part I am struggling with validation on an array. I can do validation on a variable... |
Forum: Pascal and Delphi Jan 4th, 2009 |
| Replies: 11 Views: 1,001 I'm almost finished my lottery program but having trouble with the validation. In the program the user enters their own numbers, these numbers are then stored in the array user. I want the program to... |
Forum: Pascal and Delphi Dec 2nd, 2008 |
| Replies: 1 Views: 1,052 I've been having more trouble with my lottery program. At the moment I've got the program to take in the users numbers (basically any numbers between 0-49 they want for the lottery draw). These... |
Forum: Pascal and Delphi Nov 22nd, 2008 |
| Replies: 3 Views: 594 I have a seperate program where I was toying about with an array so I know that works fine. What I did to get the program to work was to get the program to ask the user to enter the numbers back into... |
Forum: Pascal and Delphi Nov 22nd, 2008 |
| Replies: 3 Views: 594 I'm making a project in Xcode Pascal, the program asks the user if they want to begin then selects seven random in a 'lottery' style game. I wanted to save the numbers into an array so I could select... |