text
stringlengths
14
6.51M
program actividad3; const dimF = 20; type str40 = String[40]; rangoCategoria = 1..20; producto = record nombre : str40; precioCosto : Real; precioVenta : Real; categoria : Integer; end; lista = ^nodo; nodo = record datos : producto; sig : lista; end; vContador = array[rangoCategoria] of Integer;...
{ $Project$ $Workfile$ $Revision$ $DateUTC$ $Id$ This file is part of the Indy (Internet Direct) project, and is offered under the dual-licensing agreement described on the Indy website. (http://www.indyproject.org/) Copyright: (c) 1993-2005, Chad Z. Hower and the Indy Pit Crew. All rights reserv...
unit DDrawManager; interface uses Windows, Forms, Classes, DDraw, GDI, Dibs, DirectStuff; // function AreOverlaysSupported : boolean; type PVideoMode = ^TVideoMode; TVideoMode = record vmWidth : dword; vmHeight : dword; vmBitCount : dword; vmDepth ...
Const ginp='game.inp'; gout='game.out'; maxn=100010; Var n:longint; res:qword; a,b:array[0..maxn] of int64; Procedure Sort(l,r:longint; var d:array of int64); Var i,j:longint; t,tmp:int64; begin if l>=r then exit; i:=l; j:=r; t:=d[random(r-l+1)...
{ *********************************************************************************** } { * CryptoLib Library * } { * Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe * } { * Github Repository <https://github.co...
unit Settings; interface uses SysUtils, Classes, Generics.Collections; type TProperties = TDictionary<string,string>; function Properties: TProperties; implementation var P: TProperties; function Properties: TProperties; begin if P = nil then P := TProperties.Create; Result := P; end; initializat...
// 设计器gfm文件格式,这里是加密格式,至于为啥使用加密的,一 // 开始是做了外部gfm文件加载,防止项目发布使用了外部文件随意被修改,所以没有公开相关的 unit uFormDesignerFile; interface uses System.SysUtils, System.Classes, System.Zlib; type TFormResFile = class public const VERSION = 1; // GOVCLFORMZ HEADER: array[0..9] of byte = ($47, $4F, $56, $43, $4C, $46,...
{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Author: François PIETTE Creation: Mar 13, 2003 Description: Version: 1.00 EMail: francois.piette@overbyte.be http://www.overbyte.be Support: Unsupported code. Legal issues: Copyright (C) 2003 by François PIETTE ...
unit uMsgDialog; interface type TuMessage = class private public class function MensagemConfirmacao(pMessage: String): Boolean; end; implementation uses FMX.DialogService, System.UITypes, FMX.Dialogs; { TuMessageDialog } class function TuMessage.MensagemConfirmacao(pMessage: String...
unit NtUtils.Processes.Memory; interface uses NtUtils.Exceptions, Ntapi.ntmmapi; // Allocate memory in a process function NtxAllocateMemoryProcess(hProcess: THandle; Size: NativeUInt; out Address: Pointer; Protection: Cardinal = PAGE_READWRITE): TNtxStatus; // Free memory in a process function NtxFreeMemoryProc...
{ Exercicio 81: Dada uma relação de 1000 números em graus Celsius, faça um algoritmo que imprima o seguinte relatório: Graus Fahrenheit Graus Celsius xxxxxx xxxxxx } { Solução em Portugol Algoritmo Exercicio 81; Tipo vet = veto...
{ Original file taken from "Windows 7 Controls for Delphi" by Daniel Wischnewski http://www.gumpi.com/Blog/2009/01/20/Alpha1OfWindows7ControlsForDelphi.aspx MPL licensed } { D2/D3 support and correct IID consts added by Martijn Laan for Inno Setup } { Inno Setup Copyright (C) 1997-2010 Jordan Russell Porti...
program enteros; type vector = array[1..100] of integer; function posicion(v:vector; x:integer):integer; begin if ((x >= 1) and (x <= 100)) then obtenerX := v[x] else obtenerX := -1; end; procedure intercambio(v:vector; x,y:integer); var aux :int...
{$IfNDef m3RootStream_imp} // Модуль: "w:\common\components\rtl\Garant\m3\m3RootStream.imp.pas" // Стереотип: "Impurity" // Элемент модели: "m3RootStream" MUID: (54073B760302) // Имя типа: "_m3RootStream_" {$Define m3RootStream_imp} {$Include w:\common\components\rtl\Garant\m3\m3CustomHeaderStream.imp.pas} _m3Root...
unit UTwitterDemo; interface uses FMX.Forms, FMX.TMSCloudURLShortener, FMX.TMSCloudBase, FMX.TMSCloudTwitter, FMX.Controls, FMX.Dialogs, FMX.Objects, FMX.StdCtrls, FMX.Edit, FMX.Grid, FMX.TMSCloudListView, FMX.Memo, FMX.TMSCloudImage, FMX.Layouts, FMX.ListBox, FMX.TabControl, System.Classes, FMX.Types, SysU...
Program Aufgabe5; {$codepage utf8} Uses sysutils; Var StrInput, StrKlein, StrGross: String; Begin Write('Bitte gib eine Zeichenkette ein: '); Read(StrInput); StrKlein := LowerCase(StrInput); StrGross := UpperCase(StrInput); WriteLn('Deine Zeichenkette: ', StrInput); WriteLn('Deine Zeichenk...
unit SceneCustom; interface uses Scene, Engine, DGLE, DGLE_Types; type TSceneCustom = class(TScene) private pBackground: ITexture; public constructor Create(const FileName: AnsiString); destructor Destroy; override; procedure Render(); override; procedure Update(); override; ...
unit hypersports_hw; interface uses {$IFDEF WINDOWS}windows,{$ENDIF} m6809,nz80,main_engine,controls_engine,sn_76496,vlm_5030,gfx_engine, dac,rom_engine,pal_engine,konami_decrypt,sound_engine,qsnapshot,file_engine; function iniciar_hypersports:boolean; implementation const hypersports_rom:array[0.....
unit FindUnit.IncluderHandlerInc; interface uses Classes, Generics.Collections, SimpleParser.Lexer.Types; type TIncItem = record Loaded: Boolean; Content: string; FilePath: string; end; TIncludeHandlerInc = class(TInterfacedObject, IIncludeHandler) private FIncList: TObjectDictionary<strin...
unit UniqueRandom; interface Uses SysUtils; type ENoMoreNumbers = Exception; // alzaimar TUniqueRandomSequenceGenerator = class private FCounter: Integer; FNumberList: array of Integer; public constructor Create(aStart, aEnde: Integer); procedure BuildSequence(aStart, aEnde: ...
unit untDriver; interface uses // VCL Classes, SysUtils, Forms, ActiveX, ComObj, // This DrvFRLib_TLB, Fields; type { TDriver } TDriver = class(TDrvFR) public constructor Create(AOwner: TComponent); override; destructor Destroy; override; function ReadTableDef(ATableNumber, ARowNumber, AF...
unit iterator_lib; interface uses classes,contnrs; type TCleanableStack=class(TStack) public procedure Clear; end; TIterator=class(TComponent) private fclassname: TClass; function get_component(i: Integer): TComponent; public constructor Create(owner: TComponent;classname: TClass); reintrodu...
unit InsFilterNodeWordsPack; // Модуль: "w:\garant6x\implementation\Garant\GbaNemesis\View\Filters\InsFilterNodeWordsPack.pas" // Стереотип: "ScriptKeywordsPack" // Элемент модели: "InsFilterNodeWordsPack" MUID: (53B533CE01B6) {$Include w:\garant6x\implementation\Garant\nsDefine.inc} interface {$If NOT Defined(Admi...
unit fmuWorkTotalizer; interface uses // VCL Windows, ComCtrls, StdCtrls, Controls, Classes, SysUtils, Forms, ExtCtrls, Buttons, // This untPages, untUtil, untDriver, untTypes; type { TfmWorkTotalizer } TfmWorkTotalizer = class(TPage) Memo: TMemo; btnRead: TBitBtn; btnStop: TButton; ...
{ *********************************************************************************** } { * CryptoLib Library * } { * Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe * } { * Github Repository <https://github.co...
unit mainform; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls; type TMain = class(TForm) BPMList: TListBox; BPMCounterBox: TGroupBox; TimeLabel: TLabel; BPMLabel: TLabel; BeatCountLabel: TLabel; BPM: TEdit; ...
(* _______________________________________________________________________ | | | CONFIDENTIAL MATERIALS | | | | Thes...
unit fmuCustomerBonus; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, AtrPages, ToolCtrlsEh, GridsEh, DBGridEh, ComCtrls, ToolWin, DB, FIBDataSet, pFIBDataSet, ActnList, DBGridEhToolCtrls, Buttons, ExtCtrls, DBAxisGridsEh, System.Actions, PrjConst, EhLibV...
program maxSubarray(input, output); { Sample input: 9 -2 1 -3 4 -1 2 1 -5 4 [1|2|3|4] Expected output: The max sum is: 6 } uses math; type sequence = array[1 .. 20] of integer; new_sequence = array[0 .. 20] of integer; var n, i, flag : integer; a : sequence; function select() : integer...
unit Collection; interface type TMyClass = class private FF2: String; FF1: Integer; procedure SetF1(const Value: Integer); procedure SetF2(const Value: String); public property F1 : Integer read FF1 write SetF1; property F2 : String read FF2 write SetF2; end; TCollection = class private ...
// // Created by the DataSnap proxy generator. // 11/05/2017 16:44:54 // unit proxy; interface uses System.JSON, Datasnap.DSProxyRest, Datasnap.DSClientRest, Data.DBXCommon, Data.DBXClient, Data.DBXDataSnap, Data.DBXJSON, Datasnap.DSProxy, System.Classes, System.SysUtils, Data.DB, Data.SqlExpr, Data.DBXDBReaders, Da...
{ Date Created: 5/22/00 3:22:29 PM } unit InfoPOLTEMPLTable; interface uses Classes, DB, DBISAMTb, SysUtils, DBISAMTableAU, DataBuf; type TInfoPOLTEMPLRecord = record PCode: String[6]; PDescription: String[30]; PAutoCreate: Boolean; End; TInfoPOLTEMPLBuffer = class(TDataBuf) ...
unit SelectLenderForm; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, Buttons, Grids, AdvGrid, FFSAdvStringGrid, TCWODT,sPanel,sBitBtn, AdvUtil, AdvObj, BaseGrid; type TfrmSelectLender = class(TForm) grdLender: TFFSAdvStringGrid; ...
PROGRAM d10b; USES sysutils, integerlist; TYPE crt = array[0..5, 0..39] of char; FUNCTION answer(filename : string) : crt; VAR f: text; l: string; x: integer = 1; cycle: 1..240; instructions: TIntegerList; row: 0..5; col: 0..39; BEGIN IF N...
unit K610951982; {* [Requestlink:610951982] } // Модуль: "w:\common\components\rtl\Garant\Daily\K610951982.pas" // Стереотип: "TestCase" // Элемент модели: "K610951982" MUID: (565D366A0111) // Имя типа: "TK610951982" {$Include w:\common\components\rtl\Garant\Daily\TestDefine.inc.pas} interface {$If Defined(nsTest)...
namespace Sugar.Threading; interface type {$IF COOPER} ManualResetEvent = public class private fEvent: java.util.concurrent.CountDownLatch; public constructor(InitialState: Boolean); method &Set; method Reset; locked; method WaitOne; method WaitOne(Timeout: Integer): B...
unit RSStringGrid; { *********************************************************************** } { } { RSPak Copyright (c) Rozhenko Sergey } { http://sites.google.com/site/sergroj/ ...
{$INCLUDE ../../flcInclude.inc} {$INCLUDE flcTestInclude.inc} unit flcTestHugeInt; interface procedure Test; implementation uses SysUtils, flcStdTypes, flcHugeInt; { } { Tests ...
{ $Project$ $Workfile$ $Revision$ $DateUTC$ $Id$ This file is part of the Indy (Internet Direct) project, and is offered under the dual-licensing agreement described on the Indy website. (http://www.indyproject.org/) Copyright: (c) 1993-2005, Chad Z. Hower and the Indy Pit Crew. All r...
unit Monitors; interface uses Classes, SysUtils; type PMonitorArray = ^TMonitorArray; TMonitorArray = array[0..1024] of integer; type TMonitorObject = class; TServerMonitor = class; TAreaMonitor = class; TWorldMonitor = class; TMonitorObject = class public ...
PROGRAM Stat(INPUT, OUTPUT); FUNCTION ReadNumber(VAR F: TEXT): INTEGER; { Хорошая версия + работает! } VAR Number, Digit: INTEGER; BlankEater: CHAR; Overflow: BOOLEAN; FUNCTION ReadDigit(VAR F: TEXT): INTEGER; { Функция возвращает число, соответствующее символу-цифре } VAR Ch: CHAR; Digit...
{ * CVPixelBuffer.h * CoreVideo * * Copyright (c) 2004 Apple Computer, Inc. All rights reserved. * } { Pascal Translation: Gale R Paeper, <gpaeper@empirenet.com>, 2008 } { Modified for use with Free Pascal Version 210 Please report any bugs to <gpc@microbizz.nl> } {$mode macpas} {$packenum 1}...
unit TestuRedisHandle; { Delphi DUnit Test Case ---------------------- This unit contains a skeleton test case class generated by the Test Case Wizard. Modify the generated code to correctly setup and call the methods from the unit being tested. } interface uses TestFramework, Classes, SysUtils, IdTCPC...
{ Date Created: 5/22/00 11:17:33 AM } unit InfoLENDERSOAREPORTHISTORYTable; interface uses Classes, DB, DBISAMTb, SysUtils, DBISAMTableAU, DataBuf; type TInfoLENDERSOAREPORTHISTORYRecord = record PAutoinc: Word; PUserid: String[5]; PReportDate: String[10]; PTitle: String[100]; ...
{ Mark Sattolo 428500 CSI-1100A DGD-1 TA: Chris Lankester Class Notes p.79, Question 6 } program GetSomething (input,output); { This program finds the most frequently occurring word in a string. } { Data Dictionary Givens: S - a string consisting of words separated by single spaces. Intermediates: W...
unit RotateTextDemoMain; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, System.TypInfo, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.Objects, FMX.RotatingText, FMX.Controls.Presentation, FMX.StdCtrls, FMX.Ani, FMX.Layouts, FMX.ListBox; t...
{ $Project$ $Workfile$ $Revision$ $DateUTC$ $Id$ This file is part of the Indy (Internet Direct) project, and is offered under the dual-licensing agreement described on the Indy website. (http://www.indyproject.org/) Copyright: (c) 1993-2005, Chad Z. Hower and the Indy Pit Crew. All r...
unit UserListKeywordsPack; {* Набор слов словаря для доступа к экземплярам контролов формы UserList } // Модуль: "w:\garant6x\implementation\Garant\GbaNemesis\View\Admin\UserListKeywordsPack.pas" // Стереотип: "ScriptKeywordsPack" // Элемент модели: "UserListKeywordsPack" MUID: (551DFEBFD5FA) {$Include w:\garant6x\i...
unit UCircle; interface uses UFigure, SysUtils, Graphics, ExtCtrls, Windows; const Pi = 3.1415; type TCircle = class(TFigure) private FRadius: integer; public constructor Create(APoint: TPoint; AColor:TColor; ARadius:integer); function Area:real; override; procedure Draw(Image: TImage);...
unit atQueryExecutor; // Модуль: "w:\quality\test\garant6x\AdapterTest\SearchHelpers\atQueryExecutor.pas" // Стереотип: "UtilityPack" // Элемент модели: "atQueryExecutor" MUID: (483AD11C02A1) interface uses l3IntfUses , l3_Base , SearchUnit , BaseTypesUnit , DynamicDocListUnit ; type TatQueryExecutor = class(...
unit GX_ConfigureExperts; {$I GX_CondDefine.inc} interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Forms, Controls, Dialogs, StdCtrls, ComCtrls, ExtCtrls; type TfrConfigureExperts = class(TFrame) pnlExpertsFilter: TPanel; lblFilter: TLa...
unit DAO.ControleBaixasTFO; interface uses FireDAC.Comp.Client, System.SysUtils, DAO.Conexao, Control.Sistema, Model.ControleBaixasTFO; type TControleBaixaTFODAO = class private FConexao: TConexao; public constructor Create; function Insert(aControle: TControleBaixasTFO): Boolean; function Upda...
unit FullAddressBookContactProviderUnit; interface uses IAddressBookContactProviderUnit, AddressBookContactUnit; type TFullAddressBookContactProvider = class(TInterfacedObject, IAddressBookContactProvider) public function AddressBookContact: TAddressBookContact; end; implementation { TFullAddressBookCont...
unit UListHandler; // Fully annotated interface uses Classes, UInterface; type TListHandler = class private List: Array of Array of integer; LastIndex, NextEmpty, ListSize: integer; public constructor Create(ListLength: integer; fill: boolean); function GetItem(Position, ItemN...
// *************************************************************************** // // A Simple Firemonkey Rating Bar Component // // Copyright 2017 谢顿 (zhaoyipeng@hotmail.com) // // https://github.com/zhaoyipeng/FMXComponents // // *************************************************************************** // // Licens...
unit TSP; interface procedure GreedySort(tiles: array of TFoundTile); procedure QuickSort(tiles: array of TFoundTile; left,right: Integer); implementation function square(x:LongInt) : LongInt; begin result := x * x; end; function distanceTo(tile:TFoundTile) : Integer; begin result := Round(sqr...
unit Support; interface uses SysUtils, Device.SMART.List; type TTotalWriteType = (WriteNotSupported, WriteSupportedAsCount, WriteSupportedAsValue); TSupportStatus = record Supported: Boolean; FirmwareUpdate: Boolean; TotalWriteType: TTotalWriteType; end; TTotalWriteInCount = record ...
unit playerhandling; {$mode objfpc}{$H+} interface uses Classes, SysUtils, typehandling, functionhandling; procedure gaingold(amount: integer); procedure losegold(amount: integer); procedure healplayer(amount: integer); procedure damageplayer(amount: integer); procedure teleportplayer(x, y: integer);...
unit Seasons; interface uses MetaInstances; type TSeason = (seasWinter, seasSpring, seasSummer, seasFall); type TWeatherEnvelope = class( TMetaInstance ) private fValues : array[TSeason] of single; fDeviation : single; fCurrVal : single; pri...
unit csServerStatusRequest; interface uses Classes, CsDataPipe, csRequestTask, DT_types; type TddServerStatusRequest = class(TddRequestTask) private f_LineLength: Integer; f_ServerStatus: string; f_UsersCount: Integer; protected procedure LoadFrom(aStream: TStream; aIsPipe: Boolean); override;...
unit eeCheckBox; {$Include vtDefine.inc} interface uses Windows, Messages, Graphics, SysUtils, Classes, Controls, StdCtrls; type TeeCustomCheckBox = class(TCustomCheckBox) private f_PrevCharCode : Word; protected function IsHandledShortcut(var Msg: TWMKeyDown): Boolean; procedure W...
unit BufferLoaders; // Copyright (c) 1998 Jorge Romero Gomez, Merchise interface uses Classes, Windows, SysUtils, Buffer, ImageLoaders; procedure LoadBuffer( Buffer : TBuffer; Stream : TStream ); procedure LoadBufferFromFile( Buffer : TBuffer; const Filename : string ); procedure LoadBufferFromResNa...
unit UserLicenseUnit; interface uses SysUtils, BaseExampleUnit, EnumsUnit; type TUserLicense = class(TBaseExample) public function Execute(MemberId, SessionId: integer; DeviceId: String; DeviceType: TDeviceType; Subscription: String; Token: String; Payload: String): boolean; end; implementat...
unit RTF2HTML; {$mode objfpc}{$H+} interface uses Classes, SysUtils, RTFPars_lzRichEdit, LCLType, LCLProc, Dialogs, Graphics; type TRTFPict = record PictType, W, H, WG, HG: integer; HEX: string; end; TRSFontAttributes=record Charset: TFontCharset; Colo...
program typeOfLetter(input, output); var letter : char; begin write(': '); read(letter); case letter of 'a', 'e', 'i', 'o', 'u' : write('Vowel'); '.', ',', ';', '!', '?' : write('Punctuation'); else begin if (letter >= 'a') and (letter <= 'z') then write('Consonant') else write(...
unit uMusicMenu; interface uses // Own units Audio, UCommon; type TMusicMenu = class(THODObject) private FAudio: TAudio; public constructor Create; destructor Destroy; override; procedure Play; procedure Stop; procedure SetVolume(Value: Byte); end; var Music...
{ *********************************************************************************** } { * CryptoLib Library * } { * Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe * } { * Github Repository <https://github.co...
unit Weather.Classes; interface uses Generics.Collections, Rest.Json, System.JSON; type TSysClass = class private FCountry: string; FMessage: Extended; FSunrise: Extended; FSunset: Extended; public property country: string read FCountry write FCountry; property message: Extended read ...
object QuickExportSetupForm: TQuickExportSetupForm Left = 204 Top = 279 BorderStyle = bsDialog Caption = 'FB2_2_rtf quick' ClientHeight = 184 ClientWidth = 185 Color = clBtnFace Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -13 Font.Name = 'MS Sans Serif' Font.Style = []...
{******************************************************************************* 作者: dmzn@163.com 2009-6-19 描述: 皮肤状况管理 *******************************************************************************} unit UFormSkinType; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, ...
unit functions; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Windows, Registry, Math, USock; type MEMORYSTATUSEX = record dwLength: DWORD; dwMemoryLoad: DWORD; ullTotalPhys: uint64; ullAvailPhys: uint64; ullTotalPageFile: uint64; ullAvailPageFile: uint64; ullTotalVirtual: ...
unit Unbound.Game; interface uses System.SysUtils, Pengine.IntMaths, Pengine.Vector, Pengine.ICollections, Pengine.EventHandling, Pengine.Color, Pengine.Lua, Pengine.Lua.Header, Pengine.Interfaces, Unbound.Game.Serialization; type EUnboundError = class(Exception); TWorld = class; TChunk...
{********************************************************************} { TLISTLINK component } { for Delphi & C++Builder } { } { written by ...
{$I ACBr.inc} unit pciotVeiculoR; interface uses SysUtils, Classes, {$IFNDEF VER130} Variants, {$ENDIF} pcnConversao, pciotCIOT, ASCIOTUtil; type TVeiculoR = class(TPersistent) private FLeitor: TLeitor; FVeiculo: TVeiculo; FSucesso: Boolean; FMensagem: String; FOperacao: TpciotOperac...
{ Demo-Program for TLMDShapeHint. This small demo demonstrates some extended features of the TLMDShapeHint- property. Note the very strong LMDCP[..]-routines with which you can manipulate LMD-objects or standard-objects in the same way like the LMD-Tools package does internally. © 95 - 97 by LMD Innovative --...
unit l3Reader; { Библиотека "L3 (Low Level Library)" } { Автор: Люлин А.В. © } { Модуль: l3Reader - } { Начат: 10.03.2006 18:55 } { $Id: l3Reader.pas,v 1.2 2008/02/14 17:09:15 lulin Exp $ } // $Log: l3Reader.pas,v $ // Revision 1.2 2008/02/14 17:09:15 lulin // - cleanup....
{ DBAExplorer - Oracle Admin Management Tool Copyright (C) 2008 Alpaslan KILICKAYA 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 3 of the License, or (at...
unit l3LongintListReverseSorter; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // Библиотека "L3" // Автор: Люлин А.В. // Модуль: "w:/common/components/rtl/Garant/L3/l3LongintListReverseSorter.pas" // Начат: 08.06.2011 22:32 // Родные Delphi...
program listOOP; type listNode = ^listPtr; listPtr = record val : integer; next : listNode; end; list = ^listObj; listObj = OBJECT private startList : listNode; sizeList : integer; public constructor init; pr...
unit UnitFTP; interface uses Windows, Messages, SysUtils, Variants, Dialogs, IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient, IdFTP, ExtCtrls, Controls, IdFTPList, StdCtrls, Classes, forms, IdGlobal{, IdExplicitTLSClientServerBase}; type TForm2 = class(TForm) IdFTP1: TIdFTP; procedure Form...
unit ChromeLikeTabSetControlRes; // Модуль: "w:\common\components\gui\Garant\ChromeLikeControls\ChromeLikeTabSetControlRes.pas" // Стереотип: "UtilityPack" // Элемент модели: "ChromeLikeTabSetControlRes" MUID: (553E255C00B2) interface {$If NOT Defined(NoVGScene) AND NOT Defined(NoVCM) AND NOT Defined(NoTabs)} uses ...
PROGRAM Decryption(INPUT, OUTPUT); {Переводит символы из INPUT в код согласно Chiper и печатает новые символы в OUTPUT} CONST Len = 20; TYPE Str = ARRAY [1 .. Len] OF ' ' .. 'Z'; Chiper = ARRAY [' ' .. 'Z'] OF CHAR; CharSet = SET OF CHAR; VAR Msg: Str; Code: Chiper; I: INTEGER; Length: 0..Len; Chip...
unit OSUtils; {$mode objfpc}{$H+} interface uses Classes, SysUtils; type TOSFamily = (F_WINDOWS, F_LINUX, F_MAC, F_UNKNOWN); const // TODO add preprocessor PATH_SEPARATOR = '/'; OS_FAMILY = F_LINUX; function IsAbsolutePath(Path : String) : Boolean; function GetAbsolutePath(Path : String) : String; impl...
{ $Project$ $Workfile$ $Revision$ $DateUTC$ $Id$ This file is part of the Indy (Internet Direct) project, and is offered under the dual-licensing agreement described on the Indy website. (http://www.indyproject.org/) Copyright: (c) 1993-2005, Chad Z. Hower and the Indy Pit Crew. All r...
unit BigDataUtils; interface type BigData=Record class var DefaultPrec : Cardinal; var Positive : integer; Power : integer; Precise : Cardinal; DATA : TArray<Cardinal>; class constructor InitBigData; constructor Create(Prec : Cardinal); procedure TrimData; function T...
unit Modbus; interface uses Constants, ProtocolCommon, DateUtils, System.SysUtils, IdGlobal; type TOrionDataBuf = array[0..251] of Byte; type TOrionPacket = packed record Adres : Uint8; Func : Uint8; DataBuf : TOrionDataBuf; CRC : UInt16; end; type TOrionSetTimePacket = packed record Adres ...
unit format_vmrk; //support for BrainProducts VHDR format .. interface uses eeg_type, sysutils,dialogs, DateUtils,IniFiles, StrUtils,classes; type TEvent = record Typ,Desc: string; OnsetSamp,DurationSamp,Channel : integer; end; TVMRK = record Datafile: string; CurrentEvent: inte...
{ Subroutine SST_FLAG_USED_VAR (V) * * Flag all symbols as USED that are eventually referenced by the "variable" * desecriptor V. } module sst_FLAG_USED_VAR; define sst_flag_used_var; %include 'sst2.ins.pas'; procedure sst_flag_used_var ( {flag symbols eventually used from var desc} in v: sst_var...
uses math; const maxn=20; max_num=1e10; eps=1e-6; type extended=real; Tdot=record x,y,z:extended; end; var dot:array[1..maxn]of Tdot; n:longint; maxdis:extended; procedure setup; begin assign(input,'input.txt'); reset(input); end; procedure endit; begin close(input); close(ou...
unit frmInIOCPAdmin; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ActnList, iocp_clients, iocp_base, ComCtrls; type TFormInIOCPAdmin = class(TForm) InCertifyClient1: TInCertifyClient; InConnection1: TInConnection; InMessageClient1: TIn...
unit uCliente; interface uses uProtocolo, System.SysUtils, System.Classes, System.Generics.Collections, blcksock, Web.Win.Sockets; type EClienteErro = class(Exception); TCliente<T: class> = class private Socket: TTCPBlockSocket; FHost: string; FPorta: string; function Execute(Protocolo: TOpe...
unit uFlashQuestion; interface uses ExtCtrls, Controls, uFormData, uFlashRect, Messages, Dialogs; type //TFlashQuestion = class(TPanel) TFlashQuestion = class(TShape) private FData: TQuestionData; procedure SetData(const Value: TQuestionData); protected procedure WMLButtonDblCl...
{!DOCTOPIC}{ Random module } {!DOCREF} { @method: var Rand = TObjRandom; @desc: This module provides you with a few Random-functions. More functions will probably be introduced later. if SRL-6 is imported module is renamed to "Randm" :/ } {!DOCREF} { @method: function Rand.Random...
unit DispatchGetterAsMethodPatch; {$D-,L-} { Calling indexed properties like Microsoft Word's .CentimetersToPoint - COM exception is thrown due to broken DispatchInvoke routine in ComObj.pas ( System.Win.ComObj.pas in newer Delphi ) To quote IDispatch original documentation from http://msdn.microso...
unit ddPicture; // Модуль: "w:\common\components\rtl\Garant\dd\ddPicture.pas" // Стереотип: "SimpleClass" // Элемент модели: "TddPicture" MUID: (51E8DC3E0361) {$Include w:\common\components\rtl\Garant\dd\ddDefine.inc} interface uses l3IntfUses , ddTextParagraph , Classes , l3Base , l3MetafileHeader , l3Filer ...
unit l3EventedRecListView; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // Библиотека "L3" // Автор: Люлин А.В. // Модуль: "w:/common/components/rtl/Garant/L3/l3EventedRecListView.pas" // Начат: 08.06.2011 23:06 // Родные Delphi интерфейсы ...
namespace Sugar; interface type Range = public record {$IF TOFFEE}mapped to Foundation.NSRange{$ENDIF} public class method MakeRange(aLocation, aLength: Integer): Range; property Location: Integer {$IF TOFFEE}read mapped.location write mapped.location{$ENDIF}; property Length: Integer {$IF...
unit Movimentacoes; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Data.DB, Vcl.StdCtrls, Vcl.Grids, Vcl.DBGrids, Vcl.ComCtrls; type TFrmMovimentacoes = class(TForm) Label1: TLabel; Label2: TLabel; ...
program tp1ej7; const corte = -1; type novela = record codigo:integer; nombre:string; genero:string; precio:real; end; bin_novela = file of novela; procedure leerNovela(var n:novela); begin with n do begin writeln('codigo: ');readln(codigo); if (codigo <> corte) t...
unit Model.PlanilhaMovimentacaoJornal; interface uses Generics.Collections, System.Classes, System.SysUtils, Common.Utils; type TPlanilhaListagem = class private FLogradouro: String; FCodigoAssinante: String; FBairro: String; FNomeAssinante: String; FSiglaProduto: String; FComplemento: St...