Here are the rules of a simple game: 2 players a and b hide their right hands behind their backs. Each chooses to hold a certain number of fingers ...
Here are the rules of a simple game: 2 players a and b hide their right hands behind their backs. Each chooses to hold a certain number of fingers ...
I know that OR is an operator for Boolean operands. But when I use it with numbers I get surprising and unexpected results instead of an error. For ex ...
I would like to disassemble the final version of a self-written Turbo Pascal V3 program, i.e. a simple .COM file, and to that effect I've dug out my o ...
I attend 1st grade of Highschool. Recently I had an assignment to do in Turbo Pascal and this happened: An Error 57 appeared in the second if row b ...
While converting old Turbo Pascal units to modern Object Pascal, I ran into the following: The code is supposed to call an external function {$F+} ...
I'm programming a procedure in Turbo Pascal with assembly to make a close job of "rset" statement in QB 4.5. "Rset" will justify a string to the last ...
I'm trying to find the number of words in a given string in Pascal? This is my starter coede: ...
procedure tri_selection(t: tab; n: Integer); var i, j, min, aux: Integer; begin for i := 1 to n - 1 do begin min := i; for j := i + 1 ...
Looking at this code: I thought that the program won't give the right maximal value if z>x and y>x, but, to my surprise, it did give the corr ...
In Turbo Pascal 7 for DOS you can use the Crt unit to define a window. If you define a second window on top of the first one, like a popup, I don’t se ...
I want to be able to pass integer values to a function - e^x and return the result. Based on reccurence relation of e^x. Can someone help me with this ...
I have to find out the biggest number from a txt file. Numbers are for example: Someone told me, that it should works, but it didn't, and I have no ...
I don't know how "xa" can convert in to 10 in pascal. I just use: And value = 10, return = 0. I'm just a newbie, anybody can explain this? I know t ...
I would like to be able to call OutputDebugString from a Turbo Pascal 7.0 console mode program. The host PC is running Windows98, which as far as I ca ...
I'm trying to understand a somewhat magical behavior seen in Free Pascal, compiled in Turbo mode (specifically fpc -Mtp -vw) under Linux. The code is ...
I have seen many posts about this, but none of them answer the question, they give examples that do not work, all you get is more error messages, or j ...
we are doing pascal in school and task is to get all words with only latin chars which have descendingly alphabetical order in those words. So I input ...
I need some help in this Turbo Pascal problem: Two integers are said to be brothers if each digit of N1 appears at least once in N2 and vice versa. ...
I am trying to convert this thing (Shannon-Fano algorithm) from pascal to c#: And here is my code in c#: But, unfortunately my code loops endles ...