Most voted "pascal" questions
Pascal is a structured programming language, named after the mathematician Blaise Pascal.
Learn more…67 questions
Sort by count of
-
0
votes1
answer63
viewsTedit error / Tdbedit
I have a little problem. When I use the TEdit in my form, the keys I type are captured by the text box (which is normal!), however when I use one TDBEdit, keys are not captured by the text box.…
-
0
votes1
answer57
viewsDoubt in an equation in Pascal
I’m having a little problem with a code here. The following is requested: Given X as parameter (in degrees), calculate cos(x) with the sum of the first 15 terms of the series below: With the…
-
0
votes1
answer340
viewsInsertion Sort in pascal
I have to implement the ordering method Insertion Sort in Pascal. The problem is that in my algorithm I’m having to do several ifs. One for each possibility. I wonder if there is a better method to…
-
0
votes1
answer434
viewsUse the values of a variable array of a procedure in the main algorithm routine
program nome_jogadores_futebol_basquete_volei; {$APPTYPE CONSOLE} uses SysUtils; procedure futebol; var i: integer; jogador: array[1..11] of string; begin for i := 1 to 11 do begin writeln('Digite o…
-
0
votes0
answers50
viewsType incompatibility and difficulty reading a vector
I’m struggling with a problem, which at first I thought was quite trivial, but in the end I couldn’t do it. It is an exercise in a proof of Algorithms it is below: MASTERMIND GAME CONSIDER THE…
-
0
votes2
answers521
viewsConvert from String to Integer in Pascal
Good evening, I have a problem in Pascal, I take a variable in String, the variable would be a Hexadecimal, I need to convert this String to integer and do not know how to do. Thank you program…
-
0
votes1
answer52
viewsSubclass array of a superclass in Delphi XE7
I am trying to make an array of subclasses in this format: arrayReg : Array[0..1] of TRegDom = (TRegDom0000); Tregdom0000 being a subclass of Tregdom (Tregdom0000(Tregdom)) and gives an error of…
-
0
votes1
answer194
viewsRepeated element within matrix - Pascal
I have been trying for a long time to produce a code that identifies and reports to the user if there are repeated elements in a 5x5 matrix, composed of random numbers, in the pascal. I’ve tried…
-
0
votes0
answers8
viewsChange value of an item in Tjsonobject - Pascal
I have the following code : uses Classes, SysUtils, CustApp, fpjson, jsonparser ; var jsonEx4 : TJSONObject; begin //Inicio do Exercicio 4 jsonEx4:=TJSONObject.Create([ 'TProposta',…
-
-1
votes1
answer224
viewsHow to print the first 12 terms of the Fibonacci sequence in reverse in Pascal?
How to print the first 12 terms of the Fibonacci sequence in reverse in Pascal? Instead of 1 to 12, 12 to 1 program Exercicio_31; var V:array[3..12]of integer;I,termo1,termo2,novoTermo:integer;…
-
-1
votes1
answer36
viewspascal algorithm with an error
I made this algorithm but it does not run, an error appears, "This is not expected": Program valormaior_oumenor ; var valornicial, valorfinal:integer; Begin writeln('Digite um valor ');…
pascalasked 5 years, 8 months ago Glaucio Pontes 25 -
-1
votes1
answer196
viewsFiremonkey and VCL - Edit cursor does not appear
I have a VCL project, with a main form in VCL and a button that opens a FMX form with an Edit, but when focusing on Edit the pointer does not appear and does not blink, the problem only happens when…
-
-1
votes2
answers70
viewsInputado value does not appear
I’m having a doubt in an exercise where I have to show which number is the least or the most insane. But it’s not bringing the right result. Segue o código. unit Unit1; interface uses…
-
-2
votes1
answer36
viewsDoubt for routine in Pascal
I need to write a routine that makes a calculation in which a value is informed and applied a percentage. Both the value and the percentage must be requested. Perform this calculation through a…
-
-2
votes1
answer188
viewsHow to delete the line in memo according to the amounts of Numbers in Delphi?
Good Night, I have a memo that takes several strings and in many lines, I want to delete the lines that contain less or more than seven(7) numbers ,leaving only the lines that have exactly seven(7)…
-
-4
votes3
answers465
viewshow to show the matrix in matrix form and not the numbers arranged on each other’s side?
I did but it didn’t work: program teste; uses crt; var iMat: array [1..3,1..3] of integer; iLin, iCol: integer; begin write ('Digite os números da matriz: '); for iLin:=1 to 3 do begin for iCol:=1…
-
-5
votes1
answer1198
viewsPascal Car Rental System
Want instructions on how to make a car rental company, how should my code work? Can anyone help me?
pascalasked 10 years, 7 months ago Andrey Alencar 9