About 50 results
Open links in new tab
  1. Pascal Examples | DaniWeb

    To make these Pascal samples easier to learn from and more portable (Turbo Pascal, Free Pascal, Delphi), consider a few fixes and patterns: Seed RNG once: call Randomize; outside the main loop.

  2. 106 error in my program in pascal Help! | DaniWeb

    Jan 17, 2022 · Gnu Pascal is a part of the Gnu Compiler Collection, being a front-end for the same code generators used by gcc and g++. It isn't as commonly used as FreePascal, for a variety of reasons, …

  3. Tetris in Pascal | DaniWeb

    Just replace your code with code in 28 until 132. Lazarus (Free Pascal) is quite Delphi compatible. Had to use * because > 128 letters do not come out correctly as half graphics.

  4. Random in pascal [SOLVED] | DaniWeb

    You are on the right track. In Pascal you seed the pseudo‑random generator once with Randomize, then call Random whenever you want a value. Random(N) returns an integer in the half‑open range 0..N …

  5. Pascal code, displaying the maximum value ... | DaniWeb

    hey, im really struggling displaying the maximum value in this array, i have managed to get the average and etc but getting it to display the maximum ...

  6. python - Adding Listbox Items | DaniWeb

    Hope this helps. There are benefits in not having your code littered with multiple references such as ListBox1. To mention just three More compact and readable Less prone to typos - ok, the Delphi …

  7. Delphi vs Pascal | DaniWeb

    May 5, 2013 · Code that assumes ANSI chars or uses PChar / Char as 8‑bit needs revisiting (use AnsiString, AnsiChar, or explicit encodings where appropriate). (docwiki.embarcadero.com) Looking …

  8. Determining an Array's Length in Pascal | DaniWeb

    In Pascal there is no universal .length property, and the correct approach depends on the kind of array you are dealing with. For fixed-size (static) arrays, the element count is known at compile time.

  9. Pascal simple interest code | DaniWeb

    A compact Pascal example that computes the closed form, detects zero interest and supports annuity‑due is below. Use Double/Extended if your compiler supports it for better precision.

  10. pascal - copy the content of a .txt file to another ... | DaniWeb

    the title it's self explanatory i am using freepascal with the Lazarus IDE and this is quite a challenge for a noob like me so please the code ...