No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Student
- Interests
- Programming, computing, free running (parkour), gaming, movies
- PC Specs
- 2Gb ram, Nvidia Geforece 8600GTS graphics card, Logitech G15 Gaming Keyboard, Windows Vista Ultimate…
ok i dont really know how to explain this but... c:=readkey; case (c) of #13:Halt; #27:goto menu else goto quit; as you can see above if you press Esc(which is 13) the program quits and if you press Enter(which is 27) it gos to the menu. I want to know … |
|
I have been using Pascal for around 3-5 months now. I still haven't figured out how to return random answers. for instance there are 5 integers: var a,b,c,d,e : integer; and now the computer will tell you a random integer like: writeln(c); this is just an example of course because … |
|
iv seen the line 'halt' in some pascal programs after readkey or readln. what does halt do exactly? |
|
so lets say i have a program and it keeps on outputting the letter 'A' constantly until the user presses enter or something. then it will exit the loop and continue with the rest of the program. how would i do this? |
|
i was wondering if it would be possible to use a timer in pascal. like for instance you have 10 seconds to answer a question. iv been thinking and i cant figure out how to do it. does anyone know how? |
|
so i have this animation (yes i know its very long): [code=animation] begin; {main program starts} clrscr; {clears screen of any text} textcolor(9); {turns the text blue for the logo animation} writeln('MMMMMMMMMMMM MMMMMMMMMMMMM'); {logo animation starts} delay(logo); writeln('MMMMMMMMM MMMMMMMMMM'); delay(logo); writeln('MMMMMMM MMMMMMMM'); delay(logo); writeln('MMMMM8 ..MMMMMM'); delay(logo); writeln('MMMM. MMMMM'); delay(logo); writeln('MMM, … |
|
im making a program and when you select exit in the menu i want it to be like: Are you sure you want to exit? Yes No Enter Esc so when you press enter it will exit and when u press esc it will go back to the menu. everything … |
|
i am trying to use an if statement which will say some thing if points is greater than or equal to 15 AND less than 20. like this: [code] if points >= 15 and < 20 then writeln('Nice!'); [/code] but this code doesnt work. how would i do it? |
|
I'm learning Pascal in school. I've come across a run time error that's been eluding me these past few days. The error message I get is: [QUOTE]ERROR: line 86, access made to undefined variable[/QUOTE] I've been searching t'internet for a while trying to find out some help, alas Pascal as … |
|
is it possible to end actions that are happening? example: [code=pascal] repeat writeln('example'); until c=1; {the c is an example. im asking if it would be possible to change c to something like 'until readkey'} [/code] readkey doesnt work. i hope you can understand what im tring to ask here. … |
|
the program im trying to make will select a random movie from a list of movies and tell the user which 1 he should watch. first the program will ask how many movies there are. it will then ask for the titles of each movie and then it will output … |