text
stringlengths
14
6.51M
unit TitlePage; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.ListView.Types, FMX.ListView.Appearances, FMX.ListView.Adapters.Base, FMX.ListView, FMX.StdCtrls, FMX.Contro...
{ ID: nghoang4 PROG: barn1 LANG: PASCAL } const fi = 'barn1.in'; fo = 'barn1.out'; maxN = 200; type MyArr = array[1..maxN] of integer; var a, b: MyArr; m, s, c: integer; procedure Init; var i: integer; begin assign(input,fi); reset(input); readln(m,s,c); for i:=1 to c do read...
unit UnitMainForm; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls, Menus; type TMainForm = class(TForm) Image: TImage; MainMenu: TMainMenu; Hra: TMenuItem; HraNova: TMenuItem; HraKoniec: TMenuItem; procedure HraKoniecClick(Sender: TObje...
unit REST.ClientClass; interface uses REST.Client, System.Generics.Collections, System.Classes, REST.Types, System.JSON; type IClientREST = interface ['{3389A380-A0F5-45D6-9CB0-F2DDD7FF6203}'] function execute(): IClientREST; function GetBaseURL: string; procedure SetBaseURL(const Value: string);...
unit rtcBlankOutForm; {$INCLUDE rtcDefs.inc} interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, rtcTypes; type TfmBlankoutForm = class(TForm) Panel1: TPanel; Label1: TLabel; Label2: TLabel; Im...
// // Copyright (c) 2009-2010 Mikko Mononen memon@inside.org // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // Permission is granted to anyone to use this software for any purpose...
{ Single Source Shortest Paths - Without Negative Weight Edges Dijkstra Algorthm O(N2) Input: G: Directed weighted graph (No Edge = Infinity) N: Number of vertices S: The source vertex Output: D[I]: Length of minimum path from S to I (No Path = Infinity) P[I]: Parent of vertex I in its path from S, P[S...
UNIT FileUtil; interface uses DOS, CRT; function Exists(name: STRING):Boolean; PROCEDURE ChooseFile (VAR NameOfFile : STRING); procedure BackUpFile(origfilename, tempfilename : STRING); {leave unaltered file with a '.BAK' extension Rename tempfilename as old file name.} implementation function Exists(name:...
{================================================================================================ } { FMOD Types header file. Copyright (c), Firelight Technologies Pty, Ltd. 1999-2004. } { =============================================================================================== } { NOTE: For th...
unit GateClass; interface uses System.SysUtils, GateInterface; type TGate = class private State: IGate; public constructor Create(); procedure Pass; procedure PayGate; procedure Paid; procedure ChangeState(State: IGate); end; implementation uses CloseGateState; procedure TGate....
program Podantious; {*** Again, made by Nicholas Hill - when oh when will I stop making these brilliant games? (C) 1999 Connivex ***} uses crt, graph, DOS, poengine; var Ch: Char; {* If keys are set up or not} KeysSetup: Array[1..15] of ShortInt; {* Setup for levels} NumLevels: Integer; ...
unit Unit1; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls,strUtils, PythonEngine,Testthds; type { TForm1 } TForm1 = class(TForm) ScriptBtn: TButton; ThreadBtn: TButton; StopThreadBtn: TButton; Memo1: TMemo; PythonEngine1: TPythonE...
Unit NewRemDiskForm; Interface Uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, RemDiskDll, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, Vcl.StdCtrls; Type TNewRemDiskFrm = Class(TForm) MainPanel: TPanel; StornoButton: TButton; OkButton:...
unit TestCases; interface uses DUnitX.TestFramework, Classes, BD.Handler, OXmlPDOM; type TMyTestObject = class private FName: String; FAge: Integer; FSex: Char; published property Name: String read FName write FName; property Age: Integer read FAge write FAge; proper...
unit vr_types; {$mode delphi}{$H+} {$I vrode.inc} interface uses Types, SysUtils,{$IFDEF WINDOWS}Windows{$ELSE}LMessages{$ENDIF}; resourcestring RS_Create = 'Create'; RS_Delete = 'Delete'; RS_Remove = 'Remove'; RS_Overwrite = 'Overwrite'; RS_Continue = 'Continue'; ...
// ################################## // # TPLVisor - Michel Kunkler 2013 # // ################################## (* Error Records und Konstanten. Einmal für den Parser und einmal für den Interpreter. *) unit TPLErrors; interface type TParserError = Record InZeile : string; UngZustand : string; Ung...
{**********************************************} { TeeChart PageNum Tool } { Copyright (c) 2000-2004 by David Berneda } {**********************************************} unit TeePageNumTool; {$I TeeDefs.inc} // This unit implements a Chart Tool example: { TPageNumTool This tool der...
unit Nathan.Firebird.Validator.Syntax.Keywords.Parser; interface uses System.Generics.Collections, Nathan.Firebird.Validator.Syntax.Keywords.Intf; {$M+} type TFb25Parser = class(TInterfacedObject, IFb25Parser) strict private FTokens: TList<IFb25Token>; FOnNotify: TFb25ParserNotifyEvent; private ...
unit Vigilante.Configuracao.Impl; interface uses System.SysUtils, Vigilante.Configuracao; type {$M+} TConfiguracao = class(TInterfacedObject, IConfiguracao) private FSimularBuild: boolean; FAtualizacoesAutomaticas: boolean; FAtualizacoesIntervalo: integer; function GetSimularBuild: boolean; ...
unit EncodingsTestForm; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.StdCtrls, FMX.Layouts, FMX.Memo, FMX.Edit, FMX.Controls.Presentation, FMX.ScrollBox; type TForm1 = class(TForm) Memo1: ...
UNIT complex; {$MACRO ON} INTERFACE USES sysutils,math; TYPE T_Complex =record re,im:double; end; P_Complex =^T_Complex; T_arrayOfComplex=array of T_Complex; CONST II:T_Complex=(re:0; im:1); C_invalidComplex:T_Complex=(re:Nan; im:Nan); TYPE T_boundingBox=record x0,y0,x1,y1:double; end; T_sc...
unit MB3DMeshMergeUI; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ComCtrls, Vcl.StdCtrls, JvExStdCtrls, JvGroupBox, Vcl.ExtCtrls, Contnrs; type TMB3DMeshMergeFrm = class(TForm) Panel2: TPanel; ...
{ @html(<b>) Encryption/Decryption Plug-in @html(</b>) - Copyright (c) Danijel Tkalcec @html(<br><br>) This unit defines a Plug-in class, which should be extended when implementing third-party plug-ins for SSL/SSH encryption/decryption using RTC SDK components. } unit rtcPlugins; interface {$include r...
// // This unit is part of the GLScene Project, http://glscene.org // {: GLRenderContextInfo<p> Stores contextual info useful during rendering methods.<p> <b>History : </b><font size=-1><ul> <li>23/08/10 - Yar - Removed modelViewMatrix, lightDisableCounter. Added PipelineTransformation. <li>2...
{A benchmark replaying the allocations/deallocations performed by a user application} unit ReplayBenchmarkUnit; {$mode delphi} interface uses Windows, SysUtils, Classes, Dialogs, BenchmarkClassUnit, Math; type {A single operation} PMMOperation = ^TMMOperation; TMMOperation = packed record {The old poi...
program generic_test; {$mode objfpc}{H+} uses SysUtils; generic procedure GSwap<T>(var L, R: T); var Tmp: T; begin Tmp := L; L := R; R := Tmp; end; var I, J: Integer; begin I := 100; J := 11; WriteLn('I = ', I, ', J = ', J); specialize GSwap<Integer>(I, J); WriteLn('I = ', I, ', J = ', J); end...
unit uWaitForm; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, uAnimationThread; type TfrmWait = class(TForm) grp1: TGroupBox; pnl1: TPanel; lblCaption: TLabel; private { Private declarations } public { Public dec...
unit BCEditor.Print.Margins; interface uses Classes, SysUtils, Graphics, BCEditor.Print.Types, BCEditor.Print.PrinterInfo, BCEditor.Utils; type TBCEditorPrintMargins = class(TPersistent) strict private FBottom: Double; FFooter: Double; FHeader: Double; FInternalMargin: Double; ...
unit LuaDialogs; interface Uses LuaPas, Controls, Dialogs; function LuaShowMessage(L: Plua_State): Integer; cdecl; function LuaMessageDlg(L: Plua_State): Integer; cdecl; implementation Uses Lua, Typinfo; // *********************************************** function LuaShowMessage(L: Plua_State): Integer; cdecl; be...
unit StructureViewServices; interface uses DataExplorerAPI, System.Bindings.Factories, System.Bindings.Expression, System.Bindings.Outputs, System.Bindings.Helper, System.StrUtils, System.Bindings.Consts, System.Rtti, System.Classes, System.SysUtils, System.Bindings.EvalProtocol, System.Bindings.Methods, Sy...
unit UnitFormProductsData; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, UnitFormExpander, UnitFormProductsDataTable, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, System.Generics.Collections, thrift.Collections, apitypes, Vcl.Grids, UnitFormPo...
{*******************************************************} { } { CodeGear Delphi Runtime Library } { Copyright(c) 2014-2019 Embarcadero Technologies, Inc. } { All rights reserved } { ...
{ $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 TestGoto; { AFS 9 Jan 2000 This unit compiles but is not semantically meaningfull it is test cases for the code formatting utility This unit tests use of label & goto statements which you should NEVER HAVE TO USE! } interface function JumpAllAround: integer; procedure ForLoop; procedure Until...
//----------------------------------------- // Maciej Czekański // maves90@gmail.com //----------------------------------------- program Game; uses Arkanoid, Allegro, AlBlend, Math, Utility, sysutils; TYPE TGame = object public function Init: boolean; procedure DeInit; function Start: boolean; funct...
{****************************************************************************** * * * TINY PASCAL BASIC * * * ...
// // Copyright (c) 2009-2010 Mikko Mononen memon@inside.org // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // Permission is granted to anyone to use this software for any purpose...
{*******************************************************} { } { Borland Delphi Visual Component Library } { } { Copyright (c) 1997,99 Inprise Corporation } { ...
// // This unit is part of the GLScene Project, http://glscene.org // {: TypesMDC<p> Types for Return to Castle Wolfenstein's MDC file format.<p> Original code by Osman Turan (osmanturancom@yahoo.com)<p> <b>History :</b><font size=-1><ul> <li>16/10/08 - UweR - Compatibility fix for Delphi 20...
{*******************************************************} { } { Delphi DBX Framework } { } { Copyright(c) 1995-2018 Embarcadero Technologies, Inc. } { All rights rese...
{*******************************************************} { } { Delphi FireDAC Framework } { FireDAC InterBase/Firebird metadata } { } { Copyright(c) 2004-2018 Embar...
{#################################################################################################################### TINJECT - Componente de comunicação (Não Oficial) www.tinject.com.br Novembro de 201...
unit uFuncionarioDAO; interface uses System.Classes, SysUtils, Data.SqlExpr, uFuncionario, uDependente, uDependenteDAO, uDM, uDMClient; type TFuncionarioDAO = class private FSQL: TSQLQuery; procedure SalvarDependentes(const AFuncionario: TFuncionario; const AEmTransacao: boolean = false); pub...
unit LoanClient; interface uses Employer, ClientLoan; type TLoanClient = class(TObject) private FId: string; FName: string; FEmployer: TEmployer; FAddress: string; FAge: integer; FNetPay: currency; FLoans: array of TClientLoan; FValidIdentityDocs: integer; FAvailablePromisso...
{ Copyright (C) 1998-2018, written by Shkolnik Mike, Scalabium Software E-Mail: mshkolnik@scalabium.com WEB: http://www.scalabium.com This is a grid a-la MS Access grid for text file import } unit SMBreakGrid; interface {$I SMVersion.inc} uses Classes, Controls, StdCtrls, ExtCtrls; type T...
unit TelaConsultaRapidaCupom; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, DB, DBTables, RxQuery, Grids, DBGrids, ExtCtrls, StdCtrls, CartaoCredito, Buttons, Mask, ToolEdit, AdvGlowButton, DBClient, cxStyles, cxCustomData, cxGraphics, cxFilter, cxData, cx...
unit record_props_0; interface implementation type TRec = record function GetCnt: Int32; property CNT: Int32 read GetCnt; end; function TRec.GetCnt: Int32; begin Result := 3; end; var G: Int32; R: TRec; procedure Test; begin G := R.CNT; end; initialization Test(); finalization Assert(...
unit Ths.Erp.Database.Table.AyarVergiOrani; interface {$I ThsERP.inc} uses SysUtils, Classes, Dialogs, Forms, Windows, Controls, Types, DateUtils, FireDAC.Stan.Param, System.Variants, Data.DB, Ths.Erp.Database, Ths.Erp.Constants, Ths.Erp.Database.Singleton, Ths.Erp.Database.Table, Ths.Erp.Database.Tab...
{ Routines that work on CAN frames in isolation, and are independent of any * CAN library use state or other external state. } module can_frame; define can_frame_init; define can_get_reset; define can_add8; define can_add16; define can_add24; define can_add32; define can_add_fp32; define can_add_fp32f; define can_g...
unit uDBTesteUsuario; interface uses uDbObject, Data.DB; type TDbUsuario = class(TDbObject) private Fcodigo: TDbField; Fsenha: TDbField; FnomeUsuario: TDbField; Flogin: TDbField; Fvalor: TDbField; FdataCadastro: TDbField; procedure Setcodigo(const Value: TDbField); procedure Setlog...
unit upublicvar; {$mode objfpc}{$H+} interface uses Classes, SysUtils, upublictype; var gTongXinChaJianList:TStrings; procedure InitTongXinChaJianList; procedure FinalizTongXinChaJianList; function GetTongXinChaJian(const AChaJianMing:string):TPublicFunctionType; overload; function GetTongXinChaJian(const AInd...
unit Vigilante.ChangeSetItem.Model; {$M+} interface uses System.Classes, System.SysUtils; type TChangeSetItem = class private FAutor: string; FDescricao: string; FArquivosAlterados: TStringList; public constructor Create(const AAutor, ADescricao: string; const AArquivosAlterados: TArray...
unit UnitFormDelay; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ComCtrls, Vcl.ToolWin, Vcl.ExtCtrls, Vcl.StdCtrls, System.ImageList, Vcl.ImgList, Vcl.Imaging.pngimage; type TDelayInfo = record Delay:...
unit FIToolkit.Reports.Parser.XMLOutputParser; interface uses System.SysUtils, System.Generics.Collections, Xml.XMLIntf, FIToolkit.Reports.Parser.Messages; type TFixInsightXMLParser = class sealed strict private FMessages : TFixInsightMessages; private procedure AppendMessagesFromXML(cons...
unit ncCommandPacking; /// //////////////////////////////////////////////////////////////////////////// // // TSocketList // // This unit declares a TncCommand which is used by ncSources to pass // information from peer to peer. // The TncCommand can be packed and unnpacked into and from a TBytes array // //...
unit Filters; interface uses SysUtils, Windows, Messages, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TFilterDlg = class(TForm) Label1: TLabel; Description: TEdit; Label2: TLabel; Extension: TEdit; Button1: TButton; Button2: TButton; private { Private declarations ...
unit ServerMethodsUnit; interface uses SysUtils, Classes, DSServer, DBXInterBase, FMTBcd, SqlExpr, DB, Provider, Dialogs; type TServerMethods1 = class(TDSServerModule) SQLConnection_Server: TSQLConnection; Table_Report: TSQLTable; Query_Emp_treeInfo: TSQLQuery; Table_Emp: TSQLTable; DataSetP...
unit UThreadPool; interface uses Windows, SysUtils, Classes; const WT_EXECUTEDEFAULT = DWORD($00000000); WT_EXECUTEINIOTHREAD = DWORD($00000001); WT_EXECUTEINUITHREAD = DWORD($00000002); WT_EXECUTEINWAITTHREAD = DWORD($00000004); WT_EXECUTEONLYONCE = DWORD($00000008); WT_EXECUTEINTIMERTHREAD = DWORD($0...
unit ncListaEspera; interface uses SysUtils, DB, MD5, Classes, Windows, ClasseCS, ncClassesBase; type TncItemListaEspera = class private function GetString: String; procedure SetString(const Value: String); published public ilID : Integer; ilCliente : Integer; ...
Unit OpenREMDiskForm; Interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, RemDiskDll, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, Vcl.StdCtrls; Type TOpenREMDiskFrm = Class (TForm) MainPanel: TPanel; EncryptionGroupBox: TGroupBox; ...
{ This unit is part of the Lua4Delphi Source Code Copyright (C) 2009-2012, LaKraven Studios Ltd. Copyright Protection Packet(s): L4D014 www.Lua4Delphi.com www.LaKraven.com -------------------------------------------------------------------- The contents of this file are subject to the Mozilla P...
unit MainForm; 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.Error, FireDAC.UI.Intf, FireDAC.Phys.Intf, FireDAC.Stan.Def, FireDAC.Stan.Pool, FireDAC.Stan...
unit PSVClass; interface uses classes, ComCtrls, sysUtils, Dialogs, Controls, strUtils; type TPSVFile = class private psvFile : TMemoryStream; fileList : Tlist; mainDirName : string; PS2File : boolean; function listFiles : boolean; procedure PS2Buttons(enabled : boolean); public pr...
unit untGroupRightsOperate; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, untEasyPlateDBBaseForm, ComCtrls, untEasyTreeView, untEasyButtons, ExtCtrls, untEasyGroupBox, untEasyEdit, StdCtrls, untEasyUtilConst, ImgList, DB, DBClient, untEasyLabel, unt...
unit ufrmSysLangDataContent; interface {$I ThsERP.inc} uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, ComCtrls, StrUtils, Vcl.AppEvnts, Vcl.Menus, Vcl.Samples.Spin, Ths.Erp.Helper.Edit, Ths.Erp.Helper.ComboBox, Ths.Erp.Helper.Memo, ufrmBas...
Unit sysregs; (***********************************************************) (**) interface (**) (***********************************************************) uses ictrl; const Ram_size_16MB = $00; //predefined value for ...
unit PlayInfo; { Routines shared by all the Play objects. These are things that everyone can do, or at least that can be done on more than one device. Status: Beta Date: 5/16/93 Copyright (c) June 1993, by Charlie Calvert Feel free to use this code as an adjunct to your own programs. } int...
{*************************************************************** * * Project : MailDemo * Unit Name: Setup * Purpose : Sub form * Version : 1.0 * Date : Wed 25 Apr 2001 - 01:28:54 * Author : Hadi Hari <hadi@pbe.com> * History : * Tested : Wed 25 Apr 2001 // Allen O'Neill <allen_oneill@hotmail.com> *...
unit AIOUSB; interface uses Windows; const diNone = $FFFFFFFF; diFirst = $FFFFFFFE; diOnly = $FFFFFFFD; function GetDevices: LongWord; cdecl; external 'AIOUSB.dll'; function QueryDeviceInfo(DeviceIndex: LongWord; pPID: PLongWord; pNameSize: PLongWord; pName: PChar; pDIOBytes, pCounters: PLo...
unit uclsAPI; interface uses REST.Types, REST.Client, System.StrUtils, uclsClasses, Rest.JSON; type IRestAPI = interface ['{EC7DAFE5-9724-401B-9CA1-A8912BA4F491}'] procedure GetDados(pCEP : string); function GetCEP: TCEP; property CEP: TCEP read GetCEP; end; TRESTAPI = class(TInterface...
{$mode objfpc}{$H+}{$J-} program MyProgram; procedure MyProcedure(const A: Integer); begin WriteLn('A + 10 составляет: ', A + 10); end; function MyFunction(const S: string): string; begin Result := S + 'строки управляются автоматически'; end; var X: Single; begin WriteLn(MyFunction('примечание: ')); MyPro...
{ AD.A.P.T. Library Copyright (C) 2014-2018, Simon J Stuart, All Rights Reserved Original Source Location: https://github.com/LaKraven/ADAPT Subject to original License: https://github.com/LaKraven/ADAPT/blob/master/LICENSE.md } unit ADAPT.Threads; {$I ADAPT.inc} interface uses {$IFDEF ADAPT_USE_EXPLICIT_...
{******************************************} { TeeChart XML DataSource } { Copyright (c) 2001-2004 by David Berneda } { All Rights Reserved } {******************************************} unit TeeXML; {$I TeeDefs.inc} interface uses {$IFNDEF LINUX} Windows, Messages, {$ENDIF...
unit frm_GetAliasPath; interface uses Winapi.Windows, Winapi.Messages, Winapi.SHFolder, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, MSspecialFolders, JvBaseDlg, JvSelectDirectory, Vcl.Buttons, JvComponentBase, JvFormPla...
unit FilmManager; interface uses SysUtils, Graphics, FilmEditor, ExtCtrls, Controls; {* Функция киноленты, позволяет двигать ленту вправо или влево. можно получить Editor. Editor является агрегатом Фильм - менеджера *} const FILM_EDITOR_DONT_ASSIGNED = 'менеджер не связан с редактором'; EDITOR_NOT_ASSIGNED = 'н...
{$i deltics.unicode.inc} unit Deltics.Unicode.Escape.Json; interface uses Deltics.Unicode.Types; type JsonEscape = class (UnicodeEscapeBase) class function EscapedLength(const aChar: WideChar): Integer; override; class function EscapedLength(const aCodepoint: Codepoint): Integer; overri...
program SPLIT; (* split a long text file into two pieces *) uses DOS, fileops; CONST RecSize = 1; InitBufSize : LONGINT = 16384; VAR ExitPtr : POINTER; buf : POINTER; PROCEDURE SplitFile; VAR infile, outfile : FILE; Name, Name1, Name2 : String; NumRead, NumWritten : Word; BufSize, Spl...
unit ABaixaParcialCotacao; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, formularios, Componentes1, ExtCtrls, PainelGradiente, StdCtrls, Buttons, Grids, CGrades, UnDadosProduto,UnCotacao, UnProdutos, Localizacao, MPlayer, Mask, numericos, SqlExpr; type ...
unit uTravelManager; interface uses uTypes; type TTravelManger = class private fLevel : real; // текущая сложность путешествия. влияет на уровень // параметров и эффектов объектов прри генерации путешествия fLength : real; // длина уровня в пиксел...
{ KOL MCK } // Do not remove this line! {$DEFINE KOL_MCK} unit MainForm; interface {$IFDEF KOL_MCK} uses Windows, Messages, KOL, KOLadd {$IF Defined(KOL_MCK)}{$ELSE}, mirror, Classes, Controls, mckCtrls, mckObjs, Graphics {$IFEND}, Types, KOLHilightEdit, Gutter, Hilighter, InputDialog, SearchForm, OptionsFo...
{**********************************************} { TBarSeries Component Editor Dialog } { Copyright (c) 1996-2004 by David Berneda } {**********************************************} unit TeeStackBarEdit; {$I TeeDefs.inc} interface uses {$IFNDEF LINUX} Windows, Messages, {$ENDIF} SysUtils,...
unit ProductParametersQuery; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BaseQuery, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf, FireD...
{*************************************************************** * * Project : UDPServer * Unit Name: UDPServerMain * Purpose : UDP demo - server project * Version : 1.0 * Date : Wed 25 Apr 2001 - 01:43:04 * Author : <unknown> * History : * Tested : Wed 25 Apr 2001 // Allen O'Neill <allen_oneill@hotm...
unit MustacheDefCmd; interface procedure MustacheDef( tableName : string; mustacheFile : String; extraJSON : string; databaseName : String; userId, password : String; hostName : String; hostPort : Integer); implementation us...
unit URepositorioVacinaNova; interface uses UVacinaNova , UEntidade , UPaciente , URepositorioPaciente , URepositorioDB , SqlExpr ; type TRepositorioVacinaNova = class(TRepositorioDB<TVACINANOVA>) private FRepositorioPaciente: TRepositorioPaciente; public constructor Create; //destr...
{*******************************************************} { } { Borland Delphi Runtime Library } { Win32 sockets API Interface Unit } { } { Copyright (C) 1996,99...
unit Controller.ControllerUser; interface procedure Registry; implementation uses Horse, Services.SeviceUser, DataSet.Serialize, System.JSON, Data.DB; procedure DoUserListAll(Req: THorseRequest; Res: THorseResponse; Next: TProc); var LService: TServiceUser; begin LService := TServiceUser....
program HelloWorld; var s: string; x, y: integer; z: real; // 小数 a: char; // 1文字 flag: boolean; begin s := 'hello'; writeln(s); x := 10; writeln(x); y := -20; writeln(y); z := 10.2345; writeln(z); a := 'A'; writeln(a); flag := true; writeln(flag); end.
unit UnProduto; interface uses Classes; type TipoDeProduto = (tdpComprado, tdpProduzido); TProduto = class private FCodigo: string; FDescricao: string; { TODO: implementar tipo de produto fabricado ou comprado FTipoDeProduto: TipoDeProduto; } FValor: Real; public constructor Crea...
Program Area_Rectangulo ; var comprimento, largura, area:real; Begin //Pede as medidas, o comprimento e a largura Writeln('Introduza o valor do comprimento'); Readln(comprimento); Writeln('Introduza o valor da largura'); Readln(largura); //Calcula a Área area:=comprimento * largura; //Condição. O ...
unit uImport; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Windows; function FindImportLibrary(hModule: THandle; pLibName: PAnsiChar): PPointer; function FindImportFunction(pLibrary: PPointer; pFunction: Pointer): PPointer; function ReplaceImportFunction(pOldFunction: PPointer; pNewFunction: Pointer): Po...
program Prog1; type list = ^node_data; node_data = record data: integer; next: list end; procedure remove_second_element(l: list); var x: list; begin { проверяем, что 2й элемент существует } if (l <> nil) and (l^.next <> nil) then begin x := l^.next; if x^.next ...
unit DNASequenceGeneratorUnit; {$mode objfpc}{$H+} interface procedure generateSequence(name: String; lengthSequence: Integer); //constantes para verificar la longitud de entrada const longitud_min = 7; longitud_max = 1000000; //se crea un arreglo type vector = array [0..3] of String; var sequences: vector; /...
unit UOptions; interface uses Windows, SysUtils, Classes, Dialogs, forms, graphics, Messages, Types, JvJCLUtils, Variants, pngimage, JvJVCLUtils, math; type TRGBArray = array[0..0] of TRGBTriple; pRGBArray = ^TRGBArray; const CRLF = #10#13; asX11ColorValues : array[0..139] of TC...
{Escriba un programa en PASCAL que calcule el MCD (Máximo Común Divisor) para dos naturales n y m dados. Recuerde que el MCD (m,0) = m y MCD(n,m) = MCD(m,n mod m). ¿Qué estructura de control utiliza y por qué? ¿Cuántas variables utiliza? Ejemplos: n=42 y m=30 MCD = 6 n=132 y m=168 MCD = 12 } //MCD(n,m) = MCD(m,n m...
unit fGMV_InputLite; { ================================================================================ * * Application: Vitals * Revision: $Revision: 1 $ $Modtime: 4/17/09 2:31p $ * Developer: ddomain.user@domain.ext/doma.user@domain.ext * Site: Hines OIFO * * ...
unit BCEditor.Editor.Scroll; interface uses Classes, Forms, StdCtrls, BCEditor.Types, BCEditor.Editor.Scroll.Hint; const BCEDITOR_DEFAULT_SCROLL_OPTIONS = [soAutosizeMaxWidth, soPastEndOfLine, soShowHint]; type TBCEditorScroll = class(TPersistent) strict private FBars: TScrollStyle; FHin...
unit testlegendreunit; interface uses Math, Sysutils, Ap, legendre; function TestLegendreCalculate(Silent : Boolean):Boolean; function testlegendreunit_test_silent():Boolean; function testlegendreunit_test():Boolean; implementation function TestLegendreCalculate(Silent : Boolean):Boolean; var Err : D...
{*******************************************************} { } { Delphi DataSnap Framework } { } { Copyright(c) 1995-2018 Embarcadero Technologies, Inc. } { All rights rese...
unit Unit7; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, UnitMil, ExtCtrls, Unit2, Unit1, modulbus; type TForm7 = class(TForm) Button_OK: TButton; Button_UPDATE: TButton; Label1: TLabel; Panel2: TPanel; Label2: TLabel; ListBox1: TLis...