小编Top*_*les的帖子

帕斯卡倒计数而不是向上?太奇怪了

http://rextester.com/OXRFB95557

手表显示计数器j没有下降...任何想法为什么?谢谢

program NEACardTrick;

{$APPTYPE CONSOLE}

uses
  SysUtils,
  Math;

type
  Tcards = array[1..21] of string;    
var
   cards: Tcards = ('H A', 'H 2', 'H 3', 'H 4', 'H 5', 'H 6', 'H 7',
             'S A', 'S 2', 'S 3', 'S 4', 'S 5', 'S 6', 'S 7',
             'D A', 'D 2', 'D 3', 'D 4', 'D 5', 'D 6', 'D 7');
   shuffledCards:Tcards;
   i,j,y, x: integer;


function get_cards(var cards: array of string): Tcards;    
begin    
  y := 1;
  Repeat
    Randomize;
    x := …
Run Code Online (Sandbox Code Playgroud)

delphi delphi-7

3
推荐指数
1
解决办法
239
查看次数

Delphi 7彩色编码

我的Delphi 7副本有这些非常有用的颜色编码部分,用于显示if语句和循环的开始和结束等等...

图片

这些被称为什么,如何在其他没有显示它们的Delphi 7副本中打开它们?或者,我需要安装一些东西吗?

delphi delphi-7

0
推荐指数
1
解决办法
342
查看次数

期望语句但功能在我的功能代码中发现错误

所以下面是我创建的代码模块,用于验证用户输入是否在一个范围之间,但是这个错误一直出现在它下面'语句预期但找到函数',任何想法?非常感谢

function get_choice(var Options: integer): integer;
      var
      choice: integer;

      begin
        while (true) do
          begin
              write('choose option 1 to', Options);

              try
                readln(choice);
                if (choice>=1) and (choice <=Options) then
                    get_choice := choice
                else
                    write('invalid range');
              except
                 write('not a number');
          end;
      end;
Run Code Online (Sandbox Code Playgroud)

delphi pascal

0
推荐指数
1
解决办法
661
查看次数

标签 统计

delphi ×3

delphi-7 ×2

pascal ×1