text
stringlengths
14
6.51M
unit OKey; {$mode objfpc}{$H+} interface uses Classes, SysUtils, UPCDataTypes, UCrypto, UBaseTypes, UConst, UOpenSSL, UPCEncryption; Type TOKey = class private privateKeyRaw : TRawBytes; publicKeyRaw: TECDSA_Public_Raw; privateKey: TECPrivateKey; procedure ExtractR...
{*******************************************************} { } { Delphi REST Client Framework } { } { Copyright(c) 2013-2018 Embarcadero Technologies, Inc. } { All rights rese...
unit TestOS.Version.Helper; { 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, OS.Version.Helper, ...
unit LLVM.Imports.Types; interface //based on Types.h uses LLVM.Imports; type TLLVMBool = packed record ResultCode: Integer; class operator Implicit(const AValue: TLLVMBool): Boolean; class operator Implicit(const AValue: Boolean): TLLVMBool; class operator LogicalNot(const AValue: TLLVMBool): T...
unit Unit1; {$mode objfpc}{$H+} interface uses Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls; type { TfrmCommissionCalculator } TfrmCommissionCalculator = class(TForm) btnCalculate: TButton; edtSales: TEdit; gpbCommission: TGroupBox; lblSales: TLabel; lblTotal...
program oil_deposits; const OIL = -1; NO_OIL = 0; var input_file: text; output_file: text; rows, columns: integer; deposits: integer; grid: array [0..101, 0..101] of integer; procedure mark_deposit (i: integer; j: integer; marker: integer); begin grid[i,j] := marker; if grid[i-1, j ] = OIL then...
unit uGrammatik; {$mode delphi}{$H+} interface uses Classes, SysUtils,fgl, fpjson, jsonparser, jsonConf; type TRegelProduktionsseite = class produktion: String; zufaelligkeit: Real; constructor Create; destructor Destroy; override; end; type TRegelProduktionsseitenListe = TFPGList<TRegelProduktio...
unit classe.MakePeriod; interface type TMakePeriod = class private // public procedure createPeriod(valMonth: String; valYear : Integer); procedure SearchPeriod(valSearch, valPeriod : String); end; implementation { TMakePeriod } uses classe.Period, System.sysUtils; procedure TMakePeriod.createP...
unit UnitMeasurement; interface type TMeasurement = record public Time: TDateTime; Value: Double; ProductID: int64; PAramAddr: int64; class function Deserialize(var p: Pointer) : TArray<TMeasurement>; static; end; implementation uses myutils; class fun...
{ IsZSDOS: return TRUE if we're running ZSDOS (for file timestamps) } FUNCTION IsZSDOS : BOOLEAN; CONST GetDosVersion = 48; BEGIN IsZSDOS := ((BdosHL(GetDosVersion) AND $FF00) SHR 8) = Ord('S'); END; 
// GLPolyhedron {: Standard polyhedrons.<p> <b>History : </b><font size=-1><ul> <li>10/03/13 - PW - Added TGLTetrahedron and TGLOctahedron classes <li>23/08/10 - Yar - Added OpenGLTokens to uses <li>20/01/04 - SG - Added TGLIcosahedron <li>21/07/03 - EG - Creation from GLObjects split ...
unit BaseWM; {$mode objfpc}{$H+} interface uses Classes; type // A base window manager. this might be useful later TBaseWindowManager = class(TObject) public procedure InitWM(QueryWindows: Boolean = True); virtual; abstract; procedure MainLoop; virtual; abstract; end; { TBaseFrame } TBas...
unit UnModelo; interface uses SysUtils, Classes, SqlExpr, FMTBcd, DB, DBClient, Provider, { helsonsant } Util, DataUtil, Configuracoes, Dominio; type TModelo = class; Modelo = class of TModelo; TModelo = class(TDataModule) Sql: TSQLDataSet; ds: TSQLDataSet; dsp: TDataSetProvider; cds: TC...
unit Dialog; interface uses System.SysUtils, System.Classes, FMX.Types, FMX.Controls, System.Types, FMX.Objects, System.UITypes, FMX.Graphics, FMX.Dialogs, System.Math, System.Math.Vectors, FMX.Edit, FMX.Layouts, FMX.Effects, FMX.Forms, Card, FMX.StdCtrls; type TDialog = class(TCard) private { Privat...
unit SystemUnit; interface {$i compilers.inc} uses Classes, SysUtils, NPCompiler, NPCompiler.Classes, NPCompiler.DataTypes, IL.Types, NPCompiler.Operators, NPCompiler.Utils, NPCompiler.Intf; // System type TSYSTEMUnit = class(TNPUnit) type TDataTypes = array[TDataTypeID] of TIDType; const ...
unit IdNNTPServer; interface uses Classes, IdGlobal, IdTCPServer; const KnownCommands: array[1..26] of string = ('ARTICLE', 'BODY', 'HEAD', 'STAT', 'GROUP', 'LIST', 'HELP', 'IHAVE', 'LAST', 'NEWGROUPS', 'NEWNEWS', 'NEXT', 'POST', 'QUIT', 'SLAVE', ...
{*******************************************************} { } { Delphi Visual Component Library } { } { Copyright(c) 1995-2011 Embarcadero Technologies, Inc. } { ...
{*******************************************************} { } { Delphi FireDAC Framework } { FireDAC FireMonkey Error dialog } { } { Copyright(c) 2004-2018 Embar...
Unit GetField; Interface uses Crt, KeyCodes; CONST IgnoreStr = 0; BlankStr = 1; TrimStr = 2; BlankNTrim = 3; NoStr = ''; type BoxToggle = (NOBOX, BOX); Alignment = (LEFT,TOP); procedure AddExitKey(NewKey : Integer); { The pre-existing default is ESC } (* automatically called ...
unit NtUtils.Tokens; interface uses Winapi.WinNt, Ntapi.ntdef, Ntapi.ntseapi, NtUtils.Exceptions, NtUtils.Objects, NtUtils.Security.Sid, NtUtils.Security.Acl; { ------------------------------ Creation ---------------------------------- } const // Now supported everywhere on all OS versions NtCurrentProcessT...
unit fmAuthTest; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, pVDLogger, pVDEtc, Vcl.StdCtrls, System.Actions, Vcl.ActnList, Vcl.PlatformDefaultStyleActnCtrls, Vcl.ActnMan, Vcl.CategoryButtons, Vcl.ExtCtrl...
{*******************************************************} { } { Delphi FireDAC Framework } { FireDAC Login dialog } { } { Copyright(c) 2004-2018 Embar...
{*******************************************************} { } { CodeGear Delphi Runtime Library } { } { Copyright(c) 2015-2018 Embarcadero Technologies, Inc. } { All rights rese...
unit UtilsU_FMX; interface // uses FMX.Graphics,System.Classes, System.NetEncoding, sysUtils; uses FMX.Graphics; // function StringToComponentProc(Value: string): TComponent; // function ComponentToStringProc(Component: TComponent): string; procedure BitmapFromBase64(Base64: string; Bitmap: TBitmap); function Base6...
unit uload; {Membaca file-file csv yang dibutuhkan program utama dan memuatnya ke dalam array of ADT masing-masing, contoh: array of ADT Buku} {REFERENSI : http://wiki.freepascal.org/File_Handling_In_Pascal https://www.youtube.com/watch?v=AOYbfHHh4bE (Reading & Writing to CSV Files in Pascal by Holly Billinghur...
unit uMovimentacaoAlunoDsiciplina; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, uCadastroBase, Data.DB, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC...
{ LibXml2-XmlTextReader wrapper class for Delphi Copyright (c) 2010 Tobias Grimm Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation...
unit PhisicsControllerUnit; interface uses Test1Unit, TestsUnit, ControllersUnit, System.Generics.Collections, MainUnit, MenuUnit; type PhisicsController = class(TInterfacedObject, Controllers) private Test: Tests; /// <link>aggregation</link> Menu1: Main; public ...
//Ejercicio 10 // Escribir un programa que ingrese de la entrada un entero de hasta cuatro cifras y lo despliegue con el punto de la manera habitual, esto es: separando la cifra de los // millares (si la hay) de la cifra de las centenas. // // Ejemplos // // Entrada Salida // 1234 1.234 // 567 567 // 23 23 // 5678 5...
unit UnMovimentoDeContaCorrenteImpressaoView; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls, JvExControls, JvButton, JvTransparentButton, StdCtrls, Mask, JvExMask, JvToolEdit, JvMaskEdit, JvCheckedMaskEdit, JvDatePickerEdit, { helsonsant } Util, ...
namespace RemObjects.SDK.CodeGen4; uses RemObjects.Elements.RTL; type RodlRole = public class public constructor; empty; constructor(aRole: String; aNot: Boolean); begin Role := aRole; &Not := aNot; end; property Role: String; property &Not: Boolean; end; RodlRoles = p...
unit Main; interface uses System.SysUtils, FMX.Types, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.StdCtrls, FMX.Edit, FMX.ScrollBox, FMX.Memo, FMX.Platform.Win, Windows, DriversAPI, RegistryUtils, System.Classes, FMX.Controls.Presentation; type TMainForm = class(TForm) DriverPathEdit: TEdit; DriverNa...
unit uOpstellingPlayer; interface uses uHTPredictor, uRatingBijdrage; type TOpstellingPlayer = class private FDEF_R_Bijdrage: double; FAANV_R_Bijdrage: double; FMID_Bijdrage: double; FAANV_C_Bijdrage: double; FDEF_L_Bijdrage: double; FAANV_L_Bijdrage: double; FDEF_C_Bijdrage: double...
namespace RemObjects.Elements.System; uses Foundation; type ParallelLoopState = public class private public property IsStopped: Boolean read private write; method &Break; begin if not IsStopped then IsStopped := True; end; end; &Parallel = static public class public class met...
{**************************************************************************************************} { } { Project JEDI Code Library (JCL) } { ...
unit frm_CalculoAvancesPaquetes; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, utilerias, frm_connection, DBCtrls, StdCtrls, Buttons, DB, Global, ComCtrls, math, ZAbstractRODataset, ZDataset, Gauges, masUtilerias, UnitValidaTexto,unitexcepciones, DBDateTime...
{ "RTC Image Decoder" - Copyright 2004-2017 (c) RealThinClient.com (http://www.realthinclient.com) @exclude } unit rtcXImgDecode; interface {$INCLUDE rtcDefs.inc} uses Classes, Types, SysUtils, rtcTypes, rtcZLib, rtcXCompressRLE, rtcXImgConst, rtcXBmpUtils, rtcXJPE...
unit ArchAccsFrm; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, Grids, Db, DBTables, DBGrids, ExtCtrls, DBCtrls, BtrDS, Menus, AccountsFrm, SearchFrm, StdCtrls, ComCtrls, Common, Bases, Utilits, CommCons; type TArchAccsForm = class(TDataBaseForm) Data...
unit ParameterTypesQuery; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf, FireDAC.DApt.Intf, ...
program daemon; uses Cthreads, Classes, Unix, Sysutils, inifiles, Process, BaseUnix ; type TsendThread = class(TThread) private protected procedure Execute; override; Function mount(var nomefilesfs,pID:String):String; Function flush(var pid:String):integer; public end; type ...
unit DemoBase; interface {$IFDEF WIN32} {$DEFINE MSWINDOWS} {$ENDIF} {$IFDEF WIN64} {$DEFINE MSWINDOWS} {$ENDIF} uses Classes, SysUtils, DemoFrame, Windows, ComCtrls, Controls, Graphics, Forms, ShellAPI; type TDemoType = (dtDemo, dtCategory); TDemo = class protected FName: string; FHint: str...
unit AAniversariantes; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, formularios, Componentes1, ExtCtrls, PainelGradiente, StdCtrls, Buttons, ComCtrls, Grids, DBGrids, Tabela, DBKeyViolation, Db, DBTables, Menus, DBClient; type TFAniversariantes = class(TF...
unit PerformanceTest; {$mode objfpc}{$H+} interface uses SysUtils, fpcunit, testregistry, LCLIntf, uEnums, TestHelper, uIntXLibTypes, uIntX; type { TTestPerformance } TTestPerformance = class(TTestCase) published procedure Multiply128BitNumbers(); private Fint1, Fint2: TIntX; ...
unit frmNewPassword_u; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, Buttons; type TfrmNewPasswordGenerator = class(TForm) btnGenerate: TButton; pnlPasswordOut: TPanel; bmbClose: TBitBtn; rgpGenStyle: TRadioGr...
unit KOLHilightEdit; { Мне нужен достаточно простой текстовой редактор, без особых универсальностей. Но с возможностью синтаксической расцветки. Быстрый. Маленький. Без глюков. За 3 дня управлюсь? Владимир Кладов, (C) 2005. Время изготовления рабочей версии - 3 дня от начала проекта (с 27.08.2005 по 29....
unit caUndoRedo; {$INCLUDE ca.inc} interface uses // Standard Delphi units  Classes, SysUtils, Contnrs, Math, // ca units  caClasses, caLog; type //--------------------------------------------------------------------------- // IcaCommandItem ...
unit Billiards.Period; interface type TBilliardPeriod = class private fID: integer; fPeriodUntil: string; fPeriodFrom: string; public constructor Create; overload; constructor Create(ADate: TDate); overload; function ToString: string; override; property ID: integer read fID write f...
unit uoversion; interface uses Windows, SysUtils, Classes, global; // This unit provides version information of client executables. function GetExePath(PHnd : Cardinal) : AnsiString; function ScanVer(WHnd : Cardinal) : AnsiString; implementation var PSHnd : Cardinal; PSProc : function(PHnd, ...
unit mCoverSheetDisplayPanel_CPRS_Vitals; { ================================================================================ * * Application: CPRS - CoverSheet * Developer: doma.user@domain.ext * Site: Salt Lake City ISC * Date: 2015-12-21 * * Descriptio...
unit uOptions; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ComCtrls, Registry, ExtCtrls, UITypes, XmlIniFile, uConstant; type TOptions = class(TForm) btnCancel0: TButton; btnCancel1: TButton; btnCancel2: TButton; btnFile1: ...
unit GongZuoLiangTongJi; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, DB, ADODB, ComCtrls, StdCtrls, Buttons, shellapi, ComObj; type TGongZuoLiangTongJiForm = class(TForm) GroupBox4: TGroupBox; btnCreateReport: TBitBtn; STDir: TStaticText; b...
unit ReportCashBookItem; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, Grids, DBGridEh, ComCtrls, ToolWin; type TReportCashBookItemForm = class(TForm) Panel1: TPanel; ToolBar1: TToolBar; ToolButton1: TToolButton; ...
PROGRAM proscore(input,output) VAR score:real; BEGIN writeln('Please enter a score'); read(score); writeln('score=',score); IF score>=90 THEN writeln('outstanding'); ELSE IF score>=60 THEN writeln('satisfactory') ELSE writeln('unsatisfactory') END.
unit uUsuario; interface uses uEmpresa; type TUsuario = class private codigo: Integer; ativo: char; nomeUsuario: String; login: String; senha: String; public // construtor da classe constructor TUsuarioCreate; // destrutor da classe destructor TUsuarioDestroy; // met...
unit DMMain; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, ComServ, ComObj, VCLCom, StdVcl, BdeProv, BdeMts, DataBkr, DBClient, MtsRdm, Mtx, MtsCustomerTreeProject_TLB, Db, DBTables, Provider, DMCustomerTreeU; type TMtsCustomerTree = class(TMtsDataModule, IMtsCustom...
// // Created by the DataSnap proxy generator. // 20/11/2016 06:38:13 // unit ClientClassesUnit1; interface uses System.JSON, Datasnap.DSProxyRest, Datasnap.DSClientRest, Data.DBXCommon, Data.DBXClient, Data.DBXDataSnap, Data.DBXJSON, Datasnap.DSProxy, System....
// // This unit is part of the GLScene Project, http://glscene.org // {: GLTexLensFlare<p> Texture-based Lens flare object.<p> <b>History : </b><font size=-1><ul> <li>10/11/12 - PW - Added CPP compatibility: changed vector arrays to records <li>23/08/10 - Yar - Added OpenGLTokens to uses, rep...
unit ADAPT.Demo.PrecisionThreads.TestThread; {$I ADAPT.inc} interface uses System.Classes, System.SysUtils, ADAPT.Intf, ADAPT, ADAPT.Threads, ADAPT.Collections.Intf; type TTestPerformanceData = record DesiredTickRate: ADFloat; ExtraTime: ADFloat; TickRateLimit: ADFloat; TickRate: ADFloat; ...
unit BrickCamp.IRedisRepository; interface type IRedisRepository = interface ['{12C2DA6A-ADD0-4097-9FC5-115CCAA7797D}'] function Connnect : Boolean; function SetValue(Keyname : String; Value : String) : Boolean; function GetValue(Keyname : String; var Value : String) : Boolean; end; implementatio...
{*******************************************************} { } { Midas RemoteDataModule Pooler Demo } { } {*******************************************************} unit Pooler; interface uses...
unit Style.Login; interface uses System.classes, System.SysUtils, FMX.Forms; type TStyleLogin = class(TForm) public const // Style Header and Footer... LyTopAndButtom = $FF802280; // Style Body... LyBody = $FFFFFFFF; ...
{ Include file for the downstream interface of the CAN library. This * interface is for optional use by subsystems that provide device dependent * CAN I/O. * * The CAN library presents device independent CAN I/O to applications. The * unique handlers for each of the supported device dependent CAN I/O * su...
unit TestTestingHelperUtils; { 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, StdCtrls, Controls, ...
{*! * Fano Web Framework (https://fanoframework.github.io) * * @link https://github.com/fanoframework/fano * @copyright Copyright (c) 2018 Zamrony P. Juhara * @license https://github.com/fanoframework/fano/blob/master/LICENSE (MIT) *} unit SimpleDispatcherImpl; interface {$MODE OBJFPC} uses Dispatc...
unit JSONSerialize; interface type JSONPath = class(TCustomAttribute) private FName: string; public constructor Create(const AName: string); property Name: string read FName; end; function JSONString(obj: TObject): string; overload; function JSONString(intf: IInterface): string; ove...
unit UMyClass; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Buttons, ToolWin, ActnMan, ActnCtrls, ActnMenus, Menus, Data.DB, Data.Win.ADODB, Contnrs, Generics.Collections, UConnection; type TMyClass = class private /// <link>aggregation...
unit Konstanty; interface type TTicket = record Min : integer; Norm, Zlav : integer; end; TTickets = array of TTicket; TClientInfo = record Name, Company, Serial : string; LastUpdate : string; end; TServerInfo = record Host : string; Port : word; ...
unit unConstantes; interface const mProblemasNaConexaoComBanco :string = 'Problemas na conexão com o banco!'; mProblemasNaExecucaoDaConsulta :string = 'Problemas na execução da consulta!'; mRegistroNaoLocalizado :string = 'Registro não localizado!'; mSelecioneParaEdicao :string = 'Sel...
program nonogram; uses math, sysutils; type Cell = (Fill, Empty, Unknown); Board = Array of Array of Cell; Clues = Array of Integer; TClueArray = Array of Clues; function convertClue(strarr : Array of AnsiString) : TClueArray; var res : TClueArray; temp : Array of AnsiString;...
unit FamilyExQuery; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, FamilyQuery, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf, FireDAC.DApt...
{ "Screen Capture Link" - Copyright 2004-2017 (c) RealThinClient.com (http://www.realthinclient.com) } unit rtcXScreenCapture; interface {$include rtcDefs.inc} uses Classes, rtcTypes, rtcInfo, rtcXGateCIDs, rtcXImgEncode, rtcXScreenUtils, {$IFDEF WINDOWS} rtcVScreenUtilsWin,...
{**************************************************************************************************} { } { Project JEDI Code Library (JCL) } { ...
namespace RemObjects.Elements.System; uses Foundation; [SwiftName("NSLocalizedString(key:, comment:)")] method NSLocalizedString(aKey: String; aIgnoredComment: String): String; public; inline; begin result := NSBundle.mainBundle.localizedStringForKey(aKey) value("") table(nil); end; method NSLocalize...
{*******************************************************} { } { Delphi DBX Framework } { } { Copyright(c) 1995-2018 Embarcadero Technologies, Inc. } { All rights rese...
//----------------------------------------------------------------------------- // Original software is Copyright (c) 2015 Embarcadero Technologies, Inc. // You may only use this software if you are an authorized licensee // of an Embarcadero developer tools product. // This software is considered a Redistributable...
unit ALocalizaServico; { Autor: Rafael Budag Data Criação: 16/04/1999; Função: Gerar um orçamento Motivo alteração: } interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, formularios, Localizacao, StdCtrls, Buttons, Componentes1, Db, DBTa...
unit NoHelpForm; interface uses Classes, Forms, ExtCtrls, StdCtrls, Controls, Graphics, CrashMgr; type THelpForm = class(TForm) WarningIcon: TImage; HeaderLbl: TLabel; InfoLbl: TLabel; CloseBtn: TButton; VistaBox: TShape; procedure FormCreate(Sender: TObject); procedure...
{ "RTC Bitmap Utils (VCL)" - Copyright 2013-2017 (c) RealThinClient.com (http://www.realthinclient.com) @exclude } unit rtcVBmpUtils; interface {$INCLUDE rtcDefs.inc} uses SysUtils, {$IFDEF IDE_XEUp} System.Types, VCL.Graphics, {$ELSE} Types, Graphics, {$ENDIF} ...
unit MediaStream.DataSource.Proxy; interface uses Windows,Classes,SysUtils, SyncObjs, MediaStream.DataSource.Base, MediaProcessing.Definitions; type TMediaStreamDataSource_Proxy = class (TMediaStreamDataSource) private FDataLock: TCriticalSection; FChannel : TMediaStreamDataSource; protected proce...
const fileinp = 'schedule.inp'; fileout = 'schedule.out'; maxN = 100001; type kh = record a,b,c:int64; end; var n:longint; k:array[1..maxN] of kh; sum:string; procedure Init; var i:longint; begin assign(input,fileinp); reset(input); readln(n); for ...
unit CBROrderPaytView; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, CustomView, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, cxContainer, cxEdit, ActnList, cxGroupBox, cxStyles, cxCustomData, cxFilter, cxData, cxDataStorage, DB, cxDBData,...
(** This module contains a modeless form for displaying the progress of the before or after compile information. @Author David Hoyle @Version 1.0 @Date 30 Dec 2017 **) Unit ITHelper.ProcessingForm; Interface Uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Form...
1 program KeizerKiezer; 2 { (c) 2002, Tom Verhoeff, versie 2 } 3 { Kies keizer uit opgegeven aantal kandidaten, genummerd vanaf 0. 4 Iedere 3e kandidaat valt af volgens aftelversje 'Geen kei-zer'. } 5 6 { 22 September 2006, Etiene van Delden, versie 2.5 } 7 8 const 9 MaxNKandidaten = 10000; ...
unit MainForm; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ComCtrls, Vcl.StdCtrls, Vcl.ExtCtrls, Vcl.Imaging.pngimage, System.Actions, Vcl.ActnList, Vcl.Menus; type TForm1 = class(TForm) pnlTimer...
{*******************************************************} { } { Delphi VCL Extensions (RX) } { } { Copyright (c) 1995 AO ROSNO } { ...
{$mode objfpc} unit dumbBinaryTree; interface type ENotFound = class end; type generic TBTreeNode<_K, _V> = class private _Key : _K; _Val : _V; _Left : TBTreeNode; _Right : TBTreeNode; public constructor CreateFromKV( k: _K; v: _V ); function GetValue : _V; procedure SetValue( v : ...
unit MainUnit; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ComCtrls, ExtCtrls, Buttons, UFRAME1, Menus, uChoices, System.Generics.Collections, Vcl.CheckLst, Vcl.Imaging.jpeg, Vcl.Imaging.pngimage; type TForm1 = class(TForm) lb...
program Sample; begin WriteLn('Pi: ', Pi); WriteLn('MaxInt: ', MaxInt); WriteLn('Ord(False): ', Ord(False)); WriteLn('Ord(True): ', Ord(True)); WriteLn('False: ', False); WriteLn('True: ', True); end.
unit UFigures; {$mode objfpc}{$H+} interface uses Classes, ExtCtrls, Graphics, types, math, LCLType, LCLIntf, UFloatPoint, UTransform; type TPointEditor = class(TObject) private FPoint: TFloatPoint; public Selected: Boolean; constructor Create(APoint: TFloatPoint); overload; function GetP...
unit NIFUtils; { ******************************************************* sNIF Utilidad para buscar ficheros ofimáticos con cadenas de caracteres coincidentes con NIF/NIE. ******************************************************* 2012-2018 Ángel Fernández Pineda. Madrid. Spain. This work is licensed under...
{*******************************************************} { } { CodeGear Delphi Runtime Library } { } { Copyright(c) 1995-2018 Embarcadero Technologies, Inc. } { All rights rese...
// Designer : Arief Darmawan Tantriady (16518058) // Coder : Arief Darmawan Tantriady (16518058) // Tester : Morgen Sudyanto (16518380) unit F04; //pencarian buku berdasarkan tahun terbit interface uses typeList; var ketemu:boolean; tahun,i:integer; ktg:string;//kategori procedure searchTahunTerbit(lBuk...
unit g_class_sturrel; interface uses OpenGL, g_class_gameobject, g_game_objects, g_rockets, g_player, u_math, u_sound, g_sounds; type TSimpleTurrel = class (TGameObject) FireTime : Integer; procedure Render; override; procedure Move; override; procedure DoCollision(Vector : TGamePos; CoObject : TO...
{********************************************} { TeeChart Pro Charting Library } { Custom TeeFunction Editor } { Copyright (c) 2002-2004 by David Berneda } { All Rights Reserved } {********************************************} unit TeeCustomFuncEditor; {$I TeeDefs....
unit ModelMainU; {$mode objfpc}{$H+} interface uses Classes, SysUtils, SQLite3Conn, SQLDB, Dialogs; type { TModelMain } TModelMain = class(TDataModule) SQLite3Connection1: TSQLite3Connection; QueryCustomers: TSQLQuery; SQLTransaction1: TSQLTransaction; procedure DataModuleCr...
unit ClientListParams; interface uses SysUtils; type TClientListParams = class(TObject) private FSearchKey: string; FShowNonClients: boolean; public property SearchKey: string read FSearchKey write FSearchKey; property ShowNonClients: boolean read FShowNonClients write FShowNonClients; c...
// // This unit is part of the GLScene Project, http://glscene.org // {: GLSComputingRegister<p> Registration unit for GLScene Computing package.<p> <b>History : </b><font size=-1><ul> <li>05/03/11 - Yar - Added TCUDAConstant, TCUDAFuncParam <li>22/08/10 - Yar - Some improvements for FPC (tha...
procedure SetDCPixelFormat; var nPixelFormat : Integer; pfd : TPixelFormatDescriptor; begin FillChar(pfd, SizeOf (pfd), 0); with pfd do begin nSize := SizeOf (pfd); nVersion := 1; dwFlags := PFD_DRAW_TO_WINDOW or PFD_SUPPORT_OPENGL or PFD_DOUBLEBUFFER; i...
{ MIT License Copyright (c) 2016-2020 Yevhen Loza Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merg...
unit uRelatorioAlunoGeral; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf, FireDAC.DApt.Intf, F...