Questions tagged [pascal]

Pascal is an imperative language from the Wirthian family created in 1969. It was widely used in engineering and teaching in the 1970s and 1980s. It lives on in compilers as Free Pascal and Delphi.

-1
votes
0answers
37 views

Pascal ABC , Fix a bug in the program [on hold]

Find among the first 200 natural numbers such that the sum of the squares of their digits is 24. To print the numbers on the screen (use the while statement)Why does the program not work?uses crt;...
-3
votes
1answer
48 views

Pascal - sum of the digits

I have a problem in pascal that is, we ask from the user to input some number N and then we write in the output sum of the digits of this number (from N to 1).For example N=5.So in the output ...
-1
votes
1answer
32 views

Pascal Syntax error near unexpected token

I am trying to figure out the issue with this piece of Pascal codefunction Factorial(n: integer): integer;beginif n=0 thenResult :=1else if n > 0 thenResult :=Factorial(n - 1)...
-2
votes
0answers
23 views

Support for other editors via LSP

Looking at the extension source code, it looks like the server uses LSP, making it possible to use completion et al from other LSP-able editors (emacs, vim, etc.).The license on the server, on the ...
-5
votes
0answers
45 views

PASCAL programme writing [closed]

Determine the number of digits in a given positive integer. Read a number from standard input, which will fit in a 32-bit signed integer. The result will likewise be an integer, which you should write ...
4
votes
1answer
124 views

How to translate the string which is declared in Array in delphi?

We have the application in delphi and now we are implementing language translation feature. We added the code in core to translate the strings which are declared in ResourceString. It is working fine ...
1
vote
1answer
32 views

Global TAction with shorcut key BkSp

I have TAction with ShortCut key set to BkSp (backspace). I'm trying implementing Back button like in web browser so I need TAction is called in any control except Edit controls (TMemo, TEdit etc.)....
-2
votes
0answers
41 views

Preventing input of numbers from 2 to 9

I have a task to create a "binary to the decimal" conversion tool. So, first I have to get the number from Edit component. Of course, it's easy, but due to this is a binary converter, input value must ...
0
votes
1answer
34 views

Initialization of field in array of records (Pascal) [duplicate]

I have a small code where I want to initialize an array of records by fields and then just output this records on screen. Data types:typegrade=1..5;Person=recordName: string[16];...
0
votes
0answers
31 views

I want to complete this calculator program . Calculation begins when user enters=

Program calculator;VarN : integer ;Op : char;BeginRepeatWriteln('Enter a number : ');Readln(N);Writeln('Enter an operator : ');Readln(Op);Until ( Op='=');Then what should i do ...
-1
votes
0answers
37 views

Lazarus use compiled dll with 'External SIGSEGV' problem

I am learning how to create dll using lazarus, and I have a dll project using which export a function SubStr :library Project1;{$mode objfpc}{$H+}usesClassesfunction SubStr(CString: PChar;...
-2
votes
2answers
51 views

Pascal recursive summation function school practice problem

This function is a school practice problem (it is running but does not work properly).My task is to call for a integer from the user.When the number arrives, my task is to write out (with a ...
-1
votes
1answer
196 views

What is the difference between “Byte” and “byte”?

I can define a byte using:a: byte; and also can define with following:a: Byte; The compiler will pass for above two situation, but what is the difference of the byte and Byte?
0
votes
0answers
58 views

How to send and receive data when using Indy10?

I am create a proxy client using SOCKS5, in rfc1928, I should send a connect message to server, and server back to me a message:client send to server:+----+----------+--------...
-1
votes
0answers
33 views

Assigning reference to next value in array to form a 'linked list'

I'm trying to implement a linked list in alphabetical order inside an array without the use of pointers in Pascal. I'm storing the nodes of the linked list as a record consisting of a piece of data ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,