博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Delphi2 : learn procedure
阅读量:5107 次
发布时间:2019-06-13

本文共 724 字,大约阅读时间需要 2 分钟。

//for delphi security install package

[Fatal Error] Required package 'madSecurity_' not found

learn procedure

  procedure PrintAll(redn,yeln,whin:integer;sumn:integer);

  var i,j,k:integer;
  var leftn:integer;
  var red,yel,whi:integer;
  begin
        for i:=1 to redn do
        begin
                leftn:=sumn-i;
                if(leftn < 0) then
                        break
                else
                        red := i;
                        if( leftn =0 ) then
                                begin
                                writeln('r y w:',red, leftn,leftn);
                                continue;
                                end
                        else
                                for j:=0 to yeln do
                                begin
                                        leftn := sumn-i-j;
                                        if(leftn < 0) then
                                                break
                                        else
                                                yel:= j;
                                                begin

                                                        if( leftn =0 ) then

                                                         begin
                                                                writeln('r y w:',red,yel,leftn);
                                                                continue;
                                                         end
                                                        else
                                                                if(leftn <= whin) then
                                                                writeln('r y w ',red,yel,leftn);
                                                end
                                end
        end
  end;

PrintAll(4,5,3,4);

转载于:https://www.cnblogs.com/cquccy/archive/2012/05/29/2523930.html

你可能感兴趣的文章
【转】Java反射 之 反射基础
查看>>
mysql数据库备份和还原的常用命令
查看>>
s3c2440实验---定时器
查看>>
HBase配置性能调优(转)
查看>>
MyEclipse10安装SVN插件
查看>>
[转]: 视图和表的区别和联系
查看>>
Regular Experssion
查看>>
python中的字符编码
查看>>
图论例题1——NOIP2015信息传递
查看>>
uCOS-II中的任务切换-图解多种任务调度时机与问题
查看>>
CocoaPods的安装和使用那些事(Xcode 7.2,iOS 9.2,Swift)
查看>>
Android 官方新手指导教程
查看>>
幸运转盘v1.0 【附视频】我的Android原创处女作,请支持!
查看>>
UseIIS
查看>>
为什么int型最大的数是2147483647
查看>>
数据库连接的三层架构
查看>>
集合体系
查看>>
vi命令提示:Terminal too wide
查看>>
nyoj 5 Binary String Matching(string)
查看>>
引用 移植Linux到s3c2410上
查看>>