Questions tagged [pascal]
Pascal is an imperative language from the Wirthian family created in 1969. It lives on in compilers like Free Pascal and Delphi.
26 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
2
votes
0
answers
39
views
Recording/Playback thread device in Object Pascal
I have developed an audio recording and playback base device in Free Pascal. This device is built on Free Pascal's TThread class and utilizes the low-level audio ...
2
votes
0
answers
62
views
max() without arithmetics or so
I have a plan to make something to solve this stuff:
You have 7 chips that are on the run. each has some cargo loaded. And also there's where record on each....
2
votes
1
answer
766
views
X, Y Coordinates class in Lazarus (Delphi-like)
After I've now officially announced, that I'm discontinuing my color picker for Windows, I'm about to embark on a journey through Linux development.
I was quite strong in Delphi on Windows, and see no ...
5
votes
1
answer
541
views
Expand every bit into a byte
I have the following code:
...
4
votes
1
answer
320
views
Inserting an element into a linked list
This program adds an element to the end of a linked list of integers, which is previously keyed in by the user. This works fine on my computer, but I am wondering:
If there is a simpler way to do this ...
4
votes
1
answer
3k
views
Merge two integer lists in Pascal
The purpose of the code is to merge two ordered lists (list 1 : 5 integers, list 2 : 8 integers) into another third ordered list, whilst maintaining their order, while entries that appear in more than ...
6
votes
1
answer
100
views
Prompt user to enter boat details and print them
My code works perfectly fine but I was wondering if there was any better ways I could write my code like tidy it up a bit or rewrite a part of it. I want to learn how I can write my code in a better ...
2
votes
1
answer
509
views
Counting the number of letters in a .txt file in Pascal
I wrote this program that counts the number of letters in random.txt file in the Pascal programming language.
It doesn't matter if the letters are capitalized. Other characters are ignored. When it ...
6
votes
2
answers
1k
views
Pascal Bubble Sort Implementation
I would prefer a review of:
Efficiency
Standards
Different approaches
Here's the code:
...
2
votes
1
answer
846
views
Semi-Reliable Communications Using UDP
I'm writing a communications library for a class. Part of the requirements is that semi-reliable communications, which leads me to this monstrosity:
...
12
votes
1
answer
16k
views
Human-like mouse movement
The code will move the mouse from a start point (xs, ys) to finish point (xe, ye) like a human would.
I'd like some help possibly shortening the code (by optimizing it) and making it more readable.
...
9
votes
1
answer
255
views
Auto-click the sequence
The following Pascal script needs a bit of context for its purpose to be understood. For those who don't give about purpose, feel free to skip ahead.
Background
A game I'm terribly fond of has a ...
2
votes
1
answer
121
views
Giving money to the bank
Lets say we need to write an algorithm for giving money to the bank. We need to know interest rate, money which we put every year on our account, and amount of money we want to get. F.e int. rate is 1%...
3
votes
1
answer
938
views
Binary and linear search methods for a number-guessing game
This is a code written is Pascal (Delphi). It asks the user to think of a number between min_ and max_ and then guesses the ...
3
votes
1
answer
174
views
Pass the password back
This code simply receives a very basic 'password' (numbers, letters, nothing fancy). After you press enter, it will display it back. The only special key I'm handling is backspace (code ...