Skip to main content

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.

2votes
0answers
28views

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 ...
cpicanco's user avatar
2votes
0answers
54views

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....
Алексей Неудачин's user avatar
2votes
1answer
759views

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 ...
Vlastimil Burián's user avatar
5votes
1answer
526views

Expand every bit into a byte

I have the following code: ...
Johan's user avatar
4votes
1answer
309views

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 ...
Lucky's user avatar
4votes
1answer
3kviews

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 ...
Lucky's user avatar
6votes
1answer
83views

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 ...
Sam's user avatar
  • 61
2votes
1answer
496views

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 ...
Plexus's user avatar
4votes
2answers
1kviews

Pascal Bubble Sort Implementation

I would prefer a review of: Efficiency Standards Different approaches Here's the code: ...
codez's user avatar
2votes
1answer
838views

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: ...
Greg's user avatar
12votes
1answer
16kviews

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. ...
Owen's user avatar
  • 1,494
9votes
1answer
236views

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 ...
Mast's user avatar
  • 13.7k
2votes
1answer
99views

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%...
Flash's user avatar
3votes
1answer
932views

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 ...
Tim's user avatar
  • 260
3votes
1answer
117views

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 ...
Ismael Miguel's user avatar

153050per page
close