text
stringlengths
14
6.51M
{$include kode.inc} unit kode_filter_downsample; { order: 0 = 1 1 = 2 2 = 4 3 = 8 etc..order^2 } //---------------------------------------------------------------------- interface //---------------------------------------------------------------------- uses kode_filter_decimator; //---------- type ...
{ BASSmix 2.4 Delphi unit Copyright (c) 2005-2008 Un4seen Developments Ltd. See the BASSMIX.CHM file for more detailed documentation } Unit BASSmix; interface uses Windows, Bass; const // additional BASS_SetConfig option BASS_CONFIG_MIXER_FILTER = $10600; BASS_CONFIG_MIXER_BUFFER = $1...
unit untUtil; interface function iif(test:boolean ; valtrue: string; valfalse: string): string; function StringLeftPad(const aString:string; aCharCount:integer; aChar:char): string; function StringRightPad(const aString:string; aCharCount:integer; aChar:char): string; implementation function iif(tes...
unit Calculators.ProjectMetrics; interface uses System.SysUtils, System.Classes, System.Generics.Collections, System.StrUtils, System.TypInfo, DelphiAST, DelphiAST.Consts, DelphiAST.Classes, DelphiAST.Writer, SimpleParser.Lexer.Types, DelphiAST.SimpleParserEx, IncludeHandler, {} Metrics.Un...
{ Book Covers Skyrim dynamic compatibility patcher. } unit BookCoversSkyrimPatcher; const sBCPluginNames = 'Book Covers Skyrim.esp,Book Covers Dawnguard.esp,Book Covers Hearthfire.esp,Book Covers Dragonborn.esp'; var slBooks: TStringList; pluginPatch: IInterface; //===========================================...
// // (C) Moonrise Systems Inc 1999 // ALL RIGHTS RESERVED. //__________________________________________________________________________ // Unit File : Constants.PAS // Authors : Yves Mailhot //__________________________________________________________________________ // // Description: //...
unit UClipPage; interface uses UPageSuper, UPageProperty, UxlClasses, UxlList, UxlMiscCtrls, UTypeDef, UEditBox, UxlComboBox; type TClipPage = class (TChildItemContainer) private public class function PageType (): TPageType; override; class function DefChildType (): TPageType; override; ...
{ Finds and deletes invalid Papyrus properties defined on any of the selected objects' attached scripts. Only deletes up to 512 invalid properties per run. If you have more than that many invalid properties on a given script instance, then what the actual hell are you doing, dude? C...
unit App.Interfaces.ControllerBase; interface uses System.Classes, Vcl.Controls, DBClient, Forms, Dialogs, Vcl.Grids, DB, Vcl.DBGrids, Variants, Vcl.StdCtrls, FactoryEntity,Vcl.DBCtrls; type IControllerBase = interface(IInterface) ['{0CA799B5-84C6-49D5-8615-ED1278D3043A}'] procedure SetContener(const...
PROGRAM InsertSort2(INPUT, OUTPUT); TYPE NodePtr = ^Node; Node = RECORD Next: NodePtr; Key: CHAR END; VAR FirstPtr, NewPtr: NodePtr; PROCEDURE FindInsertPosition(VAR Curr, Prev, NewPtr: NodePtr); VAR IsFound: BOOLEAN; BEGIN {FindPositionInsert} IsFound := FALSE; ...
unit uFormats; interface uses Classes, SysUtils; type /// <summary>Клас пошуку входження рядка</summary> TCustomSearch = class(TObject) private Files: TFileStream; function SearchText(TextInByte: TBytes): Boolean; overload; virtual; function SearchText(TextArr: TArray<TBytes>; FromS...
unit Plus.Nullable; {***************************************************} { *** Source code coppied form Spring4D library *** } { *** Used properly according Spring4D licence *** } { Spring Framework for Delphi - Spring4D Team } { http://www.spring4d.org } {****************************...
// ************************************************************************ // // The types declared in this file were generated from data read from the // WSDL File described below: // WSDL : http://service.cld.be/catalog.asmx?WSDL // >Import : http://service.cld.be/catalog.asmx?WSDL>0 // Encoding : utf-8 // Versi...
program TugasBesarDaspro5Kel02; {TUGAS BESAR DASAR PEMROGRAMAN 5 - KELOMPOK 2} {ANGGOTA KELOMPOK 02 : * Muhammad Hasan : 16518012 * Adella Savira Putri : 16518096 * Dita Rananta Natasha : 16518173 * Rakha Fadhilah : 16518250 * Faris Muhammad Kautsar : 16518327 * Muhamad Rizki Nashirudin : 16518404 * ...
unit fBasicoCadastro; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, System.Rtti, FMX.Types, FMX.Graphics, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.StdCtrls, fBasico, FMX.Controls.Presentation, FMX.MediaLibrary.Actions, FMX.StdActns, System.Actions, FMX.ActnL...
unit Frame.HashAndCrypto; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls; type TFrameHashes = class(TFrame) tmrFrameReady: TTimer; grbxTopBar: TGroupBox; btnClose: TBut...
unit TelepitoPanel; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls; type TTelepitoPanel = class(TPanel) private fColorActive: TColor; fFontActive: TColor; fOrigColor: TColor; fOrigFont: TColor; protected procedure SetCol...
unit UMyCloudPathInfo; interface uses Generics.Collections, SyncObjs, Classes, SysUtils, UFileBaseInfo, UModelUtil, UMyUtil, UChangeInfo, uDebug, DateUtils; type //////// 数据结构 /////////// {$Region ' 云路径 信息 '} // 云路径 拥有者信息 TCloudPathOwnerInfo = class public OwnerPcID : string; FileCount :...
unit AIMessageDlg; { ------------------------- } { MessageDlg Helper for FMX } { ------------------------- } { Created by Abdullah ILGAZ } { ------------------------- } interface uses System.SysUtils, System.Classes,FMX.Objects,System.UITypes, FMX.Dialogs, System.Actions, FMX.ActnList; function AIMessageDlg(Questio...
unit Model.Usuarios; interface type TUsuarios = class private FId : System.Integer; FNome: System.string; FLogin : System.string; FEMail : System.string; FSenha: System.String; FGrupo : System.Integer; FADM : System.String; FExpira : System.String; FDias ...
unit OPars; { Распознаватель } interface procedure Compile; {======================================================} implementation uses OScan, OError, OTable, OGen, OVM; const spABS = 1; spMAX = 2; spMIN = 3; spDEC = 4; spODD = 5; spHALT = 6; spINC = 7; spInOpen = 8...
unit MinimalSpeedButton; {$mode objfpc}{$H+} interface uses Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, DrawUtils; type TTextPosition = (tpLeft, tpRight, tpTop, tpBottom); TMinimalSpeedButton = class(TGraphicControl) private FBorderWidth: integer; FPicture: TPicture; FM...
unit Qanal; { ====================================================== WinWCP - Quantal Analysis Module (c) J. Dempster 1996 18/2/98 ... Now has All Record/Range radio buttons 15/7/99 V3.0 ... Converted to 32 bit (Delphi V3.0) 25/1/99 V3.0.5 ... Potential correction calculation fixed 01.01.04 .. Out of memory err...
{ ORM Brasil é um ORM simples e descomplicado para quem utiliza Delphi Copyright (c) 2016, Isaque Pinheiro All rights reserved. GNU Lesser General Public License Versão 3, 29 de junho de 2007 Copyright (C) 2007 Free S...
PROGRAM PrintTextWithoutSpaces(INPUT, OUTPUT); VAR Ch: CHAR; BEGIN {PrintTextWithoutSpaces} READ(Ch); WRITE('Input string without spaces: '); WHILE Ch <> '#' DO BEGIN IF Ch <> ' ' THEN WRITE(Ch); READ(Ch) END; WRITELN END. {PrintTextWithoutSpaces}
(* * MDS User Define Functions * * Copyright (c) 2006 Dmitriy Kovalenko (runningmaster@gmail.com) * and all contributors signed below. * * All Rights Reserved. * Contributor(s): ______________________________________. * *) unit udf_guid; interface uses SysUtils, StrUtils, ActiveX, udf_sha1; procedure udf_UUIDAsS...
{$A+,B-,D-,E-,F-,I-,L-,N-,O-,R-,S-,V+} {$M 8192,0,655360} Program ExpFile; { This is a simple minded test program which uses COMPMARK to expand a file created by COMPFILE. This program is intended as part of a demonstration of the objects in COMPMARK, not as a serious file compression program. See the comments i...
program SpiralMatrix; { Algorithm to get quadratic matrix filled with numbers by spiral (clockwise) } const MAX = 20; type Vector = array [1..MAX] of Integer; Matrix = array [1..MAX] of Vector; function GetSpiralMatrix(N: Integer): Matrix; var I, J, K, P: Integer; R: Matrix; begin P := 1; K := 0; ...
unit aOPCUtils; interface uses SysUtils; function FormatValue(aValue:Extended; FormatString:string):string; function TryStrToFloat(aValue: string; OpcFS: TFormatSettings): extended; function TryStrToFloatDef(aValue: string; OpcFS: TFormatSettings; aDefault: extended = 0): extended; function RemoveNonNumber...
unit uFrmMain; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Forms, Vcl.AppEvnts, ShellApi, System.DateUtils, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, dxBarBuiltInMenu, Vcl.Menus, cxCustomData, cxStyles, cxTL, cxTextEd...
{ Bookmarking functions. Display a list of bookmarks if called directly. Mode: Silent } unit Bookmark; // set Bookmark for a record procedure BookmarkSet(e: IInterface; aBookmark: integer); var ini: TMemIniFile; begin AddMessage(Format('Setting Bookmark %d to %s, use Alt+%d to go back', [aBookmark, Name(e), ...
unit PointerscanWorker; //class responsible for receiving paths and working them out {$mode delphi} interface {$ifdef darwin} uses macport, Classes, SysUtils, syncobjs, PointerscanStructures, ProcessHandlerUnit, pointervaluelist, pointeraddresslist, NewKernelHandler, zstream, zstreamext, macportdefin...
{------------------------------------ 功能说明:工厂接口 创建日期:2010/03/29 作者:WZW 版权:WZW -------------------------------------} unit FactoryIntf; //{$weakpackageunit on} interface uses uIntfObj, ObjRefIntf; type TIntfCreatorFunc = function(param: Integer): TObject; IEnumKey = interface ['{BCF06768-CF57-41...
program crt_test; uses crt; {program to test new crt unit} var i : byte; var c : char; var s : string; var m : word; Procedure Notes; begin ClrScr; Writeln('This Test Program is provided to check a Borland CRT replacement'); Writeln; Writeln('Although some parts of the CRT unit are implicitly te...
{******************************************************************************* Title: T2Ti ERP Description: VO relacionado à tabela [FIN_PARCELA_RECEBER] The MIT License...
{****** 单 元:uInquBase.pas 作 者:刘景威 日 期:2008-12-31 说 明:查询类基本窗体 更 新: ******} unit uInquBase; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Menus, ActnList, DB, ADODB, ComCtrls, ExtCtrls, GridsEh, DBGrids, DBGridEh, RzPanel, Rz...
PROGRAM BubbleSort(INPUT, OUTPUT); CONST No = 'N'; Yes = 'Y'; VAR F: TEXT; PROCEDURE CopyString(VAR F1, F2: TEXT); VAR Ch: CHAR; BEGIN {CopyString} RESET(F1); REWRITE(F2); WHILE NOT(EOLN(F1)) DO BEGIN READ(F1, Ch); WRITE(F2, Ch) END; WRITELN(F2) END; {CopyString} PROCEDURE Writ...
unit Settings; { Global settings unit } {$INCLUDE 'Grijjy.inc'} interface uses System.SysUtils, System.IOUtils, System.DateUtils, Grijjy.Bson, Grijjy.System.Console; const { ProgramData foldername } PROGRAM_DATA_FOLDERNAME = 'CompanyOrProductName'; { Interval rate in seconds to retry } INTERVAL_R...
program MillProc; (***************************************************************************** Prozessprogrammierung SS08 Aufgabe: Muehle Hauptprogramm des Prozessrechners. Hier wird das Programm initialisiert, die Konfigurationsdatei eingelesen, alle Tasks ausser den Spielsteintasks kreiert und die Spie...
unit dmoUserLogInOutU; interface uses System.SysUtils, System.Classes, Data.DB, Data.Win.ADODB; type TdmoUserLogInOut = class(TDataModule) qrySysUser: TADOQuery; qryUserLog: TADOQuery; qryProgName: TADOQuery; qryUserRole: TADOQuery; private { Private declarations } Procedure SetUserLogi...
unit InfraHibernateIntf; interface uses Classes, InfraCommonIntf, InfraValueTypeIntf, ZDbcIntfs; type // Tipo de heranca TInheritanceType = (itSINGLE_TABLE, itJOINED, itTABLE_PER_CLASS); // Nivel de isolamento de uma transação TTransactionIsolation = (tiNone, tiReadCommit, tiReadUnCommitted, ...
unit USimpleStackList; interface type { A simple list that should live on the stack and can hold at most 256 bytes of data. This list can only hold value types (including records with fields that are only of value types). } TStackList<T: record> = record private type P = ^T; private FData: arr...
unit Interseccion; {$mode objfpc}{$H+} interface uses Classes, SysUtils, MetodosAbiertos, MetodosCerrados, ParseMath, Dialogs, operadores; type TInterseccion=class public rows:Integer; presicion:real; funtion:string; fx:TParseMath; Interseccion:TvectorFloat; function Bolz...
unit CatHTMLParser; {$B-} { Catarinka HTML Parser Copyright (c) 2003-2014 Felipe Daragon Based on HTMLParser.pas (THtmlParser), Copyright (c) 1999-2000 Przemyslaw Jankowski (pjank@home.pl) License: MIT (http://opensource.org/licenses/mit-license.php) You can do whatever you want with this code as long as y...
unit Main; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, Math, Core; type TMainForm = class(TForm) procedure FormCreate(Sender: TObject); procedure FormPaint(Sender: TObject); procedure FormResize(Sender: TObject); procedure HandleGameMM(Send...
// Copyright 2018 by John Kouraklis and Contributors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unle...
// $Id: remote.command.NotifyPositionChanged.pas 840 2014-05-24 06:04:58Z QXu $ unit remote.command.NotifyPositionChanged; interface uses superobject { An universal object serialization framework with Json support }, dco.framework.Command; type /// <summary>This command arranges to notify to change the visibi...
unit URibbon; interface uses Classes, UProject, USlide, GR32; type TRibbon = class private FProject: TProject; FContentDir: string; protected function CreateAndSaveBitmap(slPictoSlides: TStringList; iCurrent: integer; rectSize, incPoint: TPoint; iMaxShow: integer): string; public cons...
{ ORM Brasil é um ORM simples e descomplicado para quem utiliza Delphi Copyright (c) 2016, Isaque Pinheiro All rights reserved. GNU Lesser General Public License Versão 3, 29 de junho de 2007 Copyright (C) 2007 Free S...
unit uConn; interface uses SqlExpr, inifiles, SysUtils, Forms,Dialogs,System.UITypes; type TConn = class private Conn: TSQLConnection; SQLGeral : TSQLQuery; public constructor Create; destructor Destroy; override; function GetConexao : TSQLConnection; procedure Cami...
program bubblesort; {$MODE OBJFPC} const arraySize = 10000; const RandomRange = 1000000; Type IntArray = array [1..arraySize] of Int32; var arrayToSort: IntArray; numSwaps: Int64; numComparisons: Int64; procedure printArray(var anArray: IntArray); var i : integer; begin for i := Low(anArray) to Hi...
unit CRPartPlacementsReportForm; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, CommonFrame, CommonParentChildTreeFrame, CRPartPlacementsEditorFrame, CRPartPlacementsReportFrame, StdCtrls, ExtCtrls, BaseObjects; type TfrmPartPlacementReportForm = class(TF...
unit Vector2NumericsTestCase; {$mode objfpc}{$H+} {$CODEALIGN LOCALMIN=16} {$IFDEF USE_ASM_SSE_4} {$DEFINE USE_ASM_SSE_3} {$ENDIF} {$IFDEF USE_ASM_SSE_3} {$DEFINE USE_ASM} {$ENDIF} {$IFDEF USE_ASM_AVX} {$DEFINE USE_ASM} {$ENDIF} interface uses Classes, SysUtils, fpcunit, testregistry, BaseTestCase, nati...
unit Unit1; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ExtCtrls, StdCtrls; type { TForm1 } TForm1 = class(TForm) BtnTranslasi: TButton; BtnScalling: TButton; BtnRotasi: TButton; BtnHapus: TButton; BtnGambar: TButton; BtnKomposit: TButton...
unit upersonmanager; {$mode objfpc}{$H+} interface uses Classes, SysUtils, ZConnection, ulink; type { T_TC_PersonManager } T_TC_PersonManager = Class(TObject) private FActive: Boolean; FConnection: TZConnection; procedure SetActive(AValue: Boolean); procedure SetConnection(AValue...
unit Model.ExtratoExpressas; interface type TExtratoExpressas = class private FTipo: Integer; FNumExtrato: String; FCliente: Integer; FDatBase: System.TDate; FDatInicio: System.TDate; FDatTermino: System.TDate; FCadastro: Integer; FCodDistribuidor: Integer; FNomDistribuidor: St...
unit PessoaFisicaDTO; interface uses Atributos, Constantes, Classes, SynCommons, mORMot; type TPessoa_Fisica = class(TSQLRecord) private FID_PESSOA: TID; FID_ESTADO_CIVIL: Integer; FCPF: RawUTF8; FRG: RawUTF8; FORGAO_RG: RawUTF8; FDATA_EMISSAO_RG: TDateTime; FDATA_NASCIMENTO: T...
unit RRManagerLicenseZoneSitingInfoFrame; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, CommonComplexCombo, RRManagerObjects, RRManagerBaseObjects, RRManagerbaseGUI, RRManageCoordEditFrame, FramesWizard; type //TfrmLicenseZoneSitingInfo = class(...
program HelloWorld; CONST INI=1; FIN=5; COL1=15; COL2=30; COL3=45; COL4=60; COL5=75; TYPE //------------------------------------JUGADORES------------------------------------- TCadena = STRING [40]; TRecords = RECORD numeros_acertados: integer; creditos_obtenidos:...
{$INCLUDE switches} unit Back; interface uses Windows, Messages, SysUtils, Classes, Graphics, Forms; type TBackground = class(TForm) procedure FormPaint(Sender: TObject); procedure FormShow(Sender: TObject); procedure FormCreate(Sender: TObject); procedure FormClose(Sender: TObject...
unit UPageSuper; interface uses Windows, UxlClasses, UxlList, UTypeDef, UPageProperty, Resource; type TPageSuper = class private Fid: integer; FOwnerId: integer; FName: widestring; FStatus: TPageStatus; FIcon: widestring; FChecked: boolean; FProperties: arra...
unit unECF; interface uses Windows, SysUtils, Controls, Messages, Forms, Dialogs, Classes, Shellapi; type // Matrizes (Records) tipo_parametro = record Nome: string; Conteudo: string; Tipo: integer; end; // Totalizadores Parciais (aliquotas) retornado do ECF TTotalizador =...
{ *************************************************** PSPdisp (c) 2008 - 2015 Jochen Schleu wlan.pas - functions dealing with wlan transfer This software is licensed under the BSD license. See license.txt for details. *************************************************** } unit wlan; interface uses Sys...
{ ******************************************************************************* Title: T2TiPDV Description: Pesquisa por cliente e importação para a venda. The MIT License Copyright: Copyright (C) 2015 T2Ti.COM Permission is hereby granted, free of charge, to any person obtaining a copy of this softwar...
{$Z4} unit MediaCommon; interface uses Windows, SysUtils; const IID_IStreamInfos: TGUID = '{5DD650C8-40A3-4d0d-B460-0BA5804A1AAD}'; IID_IMediaStream: TGUID = '{E6C172B0-6D74-438f-81E0-433D92B2A627}'; IID_IVideoInput: TGUID = '{8F310739-7304-4fb9-B4C4-FF7B3B48D98E}'; IID_IVideoOutput: TGUID = '{30D...
unit CountryForm; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Entities; type TfmCountry = class(TForm) Label1: TLabel; Label2: TLabel; edId: TEdit; edName: TEdit; proced...
unit PathPeForm; interface uses System.ImageList, Vcl.forms, Vcl.ImgList, Vcl.Controls, Vcl.StdCtrls, Vcl.ExtCtrls, Vcl.ComCtrls, System.Classes, System.UITypes, SysUtils; // Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, // Dialogs, ComCtrls, StdCtrls, ExtCtrls, ImgList; type ...
unit EM1_Format; interface uses SysUtils, AudioFormat; type TEM1File = class(TAudioFile) public EM1Label: String; nChannels: Word; nSamplesPerSec: LongWord; nBytesPerSample: Word; nSamples: LongWord; procedure ReadAudioData(var AudioData: TAudioData); constructor Cre...
unit ucCONFCAMPOJSON; interface uses Classes, SysUtils, StrUtils, ucCONFCAMPO; type TcCONFCAMPOJSON = class public class procedure Gravar(pArquivo : String; pLista : TcCONFCAMPOLIST); class function Ler(pArquivo : String) : TcCONFCAMPOLIST; end; implementation uses uLkJSON, ucARQUIVO, ucPATH; ...
// Code by chuacw, Singapore, 8 Dec 2017 unit EnumJSON.Interceptors; interface uses System.JSON, REST.JsonReflect; type EnumAsAttribute = class(TCustomAttribute) private FName: string; public constructor Create(const AName: string); overload; function ToString: string; override; property Name: s...
{==============================================================================| | MicroCoin | | Copyright (c) 2018 MicroCoin Developers | |=========================================================================...
unit ZhTreeImpl; interface uses Classes, SysUtils; type TNode = class; TErrorObject = class(Exception); TTree = class private FRemoveAll: boolean; FIndex: Integer; FRootNode: TNode; FNodes: TList; function GetItems(Index: Integer): TNode; function GetCount: Intege...
(*======================================================================* | unitCExpression | | | | 'C' Expression evaluator | | ...
{ *************************************************** PSPdisp (c) 2008 - 2015 Jochen Schleu audio.pas - streaming audio functions This software is licensed under the BSD license. See license.txt for details. *************************************************** } unit audio; interface uses Windows, MM...
unit uAtributos; interface type TTabela = class(TCustomAttribute) private FNome: String; public constructor Create(pNome: String); property nome: String read FNome write FNome; end; TCampo = class(TCustomAttribute) private FNome: String; FChavePrimaria: Boolean; FTamanho: Integer...
unit Rice.Example.View; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, System.StrUtils, System.TypInfo, System.Rtti, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Par...
unit ListaArrayUnit; interface const max_elementos = 10; type ListaArray = record elementos: array[1..max_elementos] of integer; cantidad: integer; end; type posicion = integer; type Lista = ListaArray; procedure Init(var L: Lista); function Cantidad(var L: Lista): integer; function Inicio(var L: Lista...
(* Б) Напишите функцию, принимающую числовое множество и возвращающую количество содержащихся в нём элементов. *) type tSet = set of byte; procedure ReadSet(var aFile: text; var aSet: tSet); var num: byte; begin while not Eoln(aFile) do begin Read(aFile, num); aSet := aSet + [num]; end; Readln(aFile); end; fu...
unit MessageSet; interface type HCkTask = Pointer; HCkMessageSet = Pointer; HCkString = Pointer; function CkMessageSet_Create: HCkMessageSet; stdcall; procedure CkMessageSet_Dispose(handle: HCkMessageSet); stdcall; function CkMessageSet_getCount(objHandle: HCkMessageSet): Integer; stdcall; function CkMessageSet_g...
//******************************************************* // // Delphi DataSnap Framework // // Copyright(c) 1995-2012 Embarcadero Technologies, Inc. // //******************************************************* unit DBXFPCCommon; {$IFDEF FPC} {$mode Delphi} {$ENDIF} interface uses DBXValue, DSRestType...
Program Pzim ; const l = 2; c = 3; //=======================================ler matriz============================== procedure lermatriz (var m,n:integer;i,j:integer); begin writeln('Informe o numero da matriz m na posição ',i,',',j); readln(m); writeln('Informe o numero da matriz n na posição ...
{ ******************************************************************************* Title: T2Ti ERP Description: Janela Cadastro de Subgrupo de Produtos The MIT License Copyright: Copyright (C) 2015 T2Ti.COM Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated do...
PROGRAM WorkWithQueryString(INPUT, OUTPUT); USES DOS; FUNCTION GetQueryStringParameter(Key: STRING): STRING; VAR FirstPosition, I, KeyPosition: INTEGER; QueryString, ResultString: STRING; BEGIN { GetQueryStringParameter } QueryString := GetEnv('QUERY_STRING'); ResultString := ''; KeyPosition := POS(CON...
{ this file is part of Ares Aresgalaxy ( http://aresgalaxy.sourceforge.net ) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later v...
unit U_CADASTROPADRAO; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, System.Actions, FMX.ActnList, FMX.StdCtrls, FMX.Controls.Presentation, FMX.Layouts, FMX.ListBox, FMX.Edit, FMX.SearchB...
{ ******************************************************************************* Title: T2Ti ERP Description: VO relacionado à tabela [Fornecedor] The MIT License Copyright: Copyright (C) 2015 T2Ti.COM Permission is hereby granted, free of charge, to any person obtaining a copy of this software and as...
{ p_37_1.pas - вывод множества в файл } program p_37_1; type tSet = set of 1..255; { объявление типа "множество" } {----- Процедура вывода множества в файл -----} procedure WriteSet(var aFile: text; const aSet: tSet); var k: integer; begin for k:=1 to 255 do { цикл по всем элементам множества } ...
unit healthbar; {$mode objfpc}{$H+} interface uses Classes, SysUtils, guiobject, gl, GLext; type THealthBar=class(TGuiObject) private fpercentage: single; w, h: single; fborder: single; protected procedure renderRelative; override; function getWidth:single; override; ...
unit TypeUnit; { Typen Unit zur verwendung in projekt Scotlandyard zur bereitstellung aller noetigen typen } interface uses System.SysUtils, Vcl.Graphics; type { aufzaelungstyp fuer die tickets/verkehrsmittel } TVehicles = (SUBWAY,BUS,TAXI,BOAT,NONE); { menge fuer stationsverwaltung } TTargets = set of b...
unit Cinifld; interface uses SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls, Forms, Dialogs, IniLocal; type TCIniField = class(TComponent) private fSection : string; fKey : string; fDefault : string; fRewrite : Boolean; protect...
{ Copyright (C) 2013-2018 Tim Sinaeve tim.sinaeve@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable...
unit uni_RegCommon; interface uses OnGuard, OgUtil, Classes; var MachineModifier : longint; MachineKey : TKey; Expires : TDateTime; RegistrationInfo : TStringList; function IsReleaseCodeValid (ReleaseCodeString: string; const SerialNumber : longint) : boolean; procedure SaveRegistrationInfor...
unit PerforatorPoster; interface uses PersistentObjects, DBGate, BaseObjects, DB, Fluid; type TPerforatorDataPoster = class(TImplementedDataPoster) public function GetFromDB(AFilter: string; AObjects: TIdObjects): integer; override; function PostToDB(AObject: TIDObject; ACollection: TIDObjects): integer;...
unit frmLODGenMain; interface uses Windows, Messages, Classes, SysUtils, Controls, StdCtrls, Forms, wbInterface, ExtCtrls, IniFiles; const VersionString = '2.2.2 (2009-02-25)'; DefaultInterval = 1 / 24 / 6; type TfrmMain = class(TForm) mmoMessages: TMemo; tmrMessages:...
// Copyright (c) 2016, Jordi Corbilla // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // - Redistributions of source code must retain the above copyright notice, // this list of conditions ...
unit FormReports; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, CommonObjectSelectFilter, FormEvent, FrameReportsAttribute, FrameReportsView, ActnList, Grids, ImgList, StdCtrls, FrameReportsBut, BaseObjects, Material; type TfrmReports = class(TForm) ...
unit PtTypes; interface uses System.Rtti; const /// <summary> /// method is class function /// </summary> csIsClassMethod = True; /// <summary> /// method is function /// </summary> csIsNotClassMethod = False; type /// <summary> /// One test case for one method /// </summary> /// <example> ...
unit Client_u; // Craig Stroberg // 70854 // The client object is a representation of what is needed for a client interface uses SysUtils; type TClient = class private id: integer; clientName: string; contactPerson: string; phoneNumber: string; email: string; { Private declarations } ...
unit PACCHighLevelOptimizer; {$i PACC.inc} interface uses SysUtils,Classes,Math,PasMP,PUCU,PACCRawByteStringHashMap,PACCTypes,PACCGlobals,PACCAbstractSyntaxTree; type TPACCHighLevelOptimizer=class public Instance:TObject; constructor Create(const AInstance:TObject); destruct...
(* Н) Напишите функцию для шифрования строки путём перестановки её символов, расположенных на нечётных позициях: первый символ обменивается с последним, третий - с третьим от конца и т.д. *) procedure Swap(var ch1, ch2 : char); var t : char; begin t := ch1; ch1 := ch2; ch2 := t; end; function Encrypt(s : string):...