text stringlengths 14 6.51M |
|---|
UNIT Mod_IO;
INTERFACE
PROCEDURE WriteHeader(s: STRING);
PROCEDURE WriteSubHeader(s: STRING);
PROCEDURE DoubleSeparator;
PROCEDURE SingleSeparator;
PROCEDURE ErrorMessage(s: STRING);
PROCEDURE SuccessMessage(s: STRING);
IMPLEMENTATION
PROCEDURE DoubleSeparator;
BEGIN
WriteLn('====================... |
unit cbConfigModule;
interface
uses
SysUtils, Classes, Windows, Variants, IniFiles, DB, ADODB, cbClass,
DBClient;
type
TConfigModule = class(TDataModule)
AccessConnection: TADOConnection;
DataReader: TADOQuery;
CmdEnv: TClientDataSet;
procedure DataModuleCreate(Sender: TObject);
procedure D... |
//****************************************************************************
// Unit Name: Vcl.ExtDlgs
//****************************************************************************
// This file is auto generated with paxCompiler engine.
// Import mode: global import.
// ------------------... |
{-----------------------------------------------------------------------------
Unit Name: PDIImport
Author: Gary Whetton
Date: 9/11/2003 3:09:30 PM
Revisions: Build Number Date Author
-----------------------------------------------------------------------------}
unit PDIImport;
{$I ConditionalCompil... |
unit uRestClientServiceUnit;
//REST Client Service
//TRESTInstance 包含 TRestClient TRESTResponse TOnRESTRequest
//通过 TRESTPool 池来管理 TRESTInstance 提高使用效率,避免重复创建、释放
interface
uses
System.Classes, System.SysUtils, IPPeerClient, REST.Client;
type
TOnRESTRequest = procedure(StatusCode:Integer; StatusT... |
unit Sendkey;
interface
Uses Windows, Messages;
const
SK_BKSP = #8;
SK_TAB = #9;
SK_ENTER = #13;
SK_ESC = #27;
SK_F1 = #228;
SK_F2 = #229;
SK_F3 = #230;
SK_F4 = #231;
SK_F5 = #232;
SK_F6 = #233;
SK_F7 = #234;
SK_F8 = #235;
SK_F9 = #236;
... |
unit CPort.Data;
interface
uses
System.SysUtils, System.Classes, CPort, CPort.Types,
System.Generics.Collections, CPort.Protocol;
type
TComDataBytePacket = class(TComponent)
private
FComLink: TComLink;
FComPort: TCustomComPort;
FStartString: string;
FStopString: string;
FMaxBufferSize: I... |
{ Copyright (c) 2007-2012 Jeroen Wiert Pluimers for BeSharp.net and better office benelux.
Full BSD License is available at http://besharp.codeplex.com/license and http://bo.codeplex.com/license }
// all classes should implement IInterface, and instances should be referenced as interfaces.
// there should not be a... |
Program AreaTriangulo;
Var
base, altura: Real;
area: Real;
Begin
write('Base: ');
read(base);
write('Altura: ');
read(altura);
area:=(base*altura)/2;
write('Área: ', area:5:2);
End. |
unit delay;
{$define FPC_HAS_MUL}
interface
const
F_CPU = 8000000;
procedure delay_ms(t: uint16);
{$ifdef CPUAVR_HAS_MUL}
procedure delay_us(t: uint16);
{$endif}
implementation
// delay_ms
// Cycle count (assuming 16 bit PC)
// inline doesn't work yet, so 4 cycles for call and 4 cycles for ret
// 3 cycles zero c... |
unit Test_Encrypt;
interface
uses
TestFramework,
Classes,
IdSSLOpenSSLHeaders,
Encrypt;
type
Check_Encrypt = class(TTestCase)
private
public
procedure setUp; override;
procedure tearDown; override;
published
procedure VerifyPKCS5pad;
procedure VerifyPKCS5unpad;
procedure VerifyEn... |
unit ViewDetails;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls,
ClientLoanFrame;
type
TfrmDetails = class(TForm)
GridPanel1: TGridPanel;
TopGrip: TGridPanel;
lblID: ... |
unit Level5Prep;
interface
uses
BaseParser, ParseResult;
type
TLevel5Prep = class(TBaseParser)
public
class function Execute(const AString: AnsiString; AResultsObject: TParseResult): AnsiString; override;
end;
implementation
uses
SysUtils, AppUtils;
{ TLevel5Prep }
class functio... |
{***********UNITE*************************************************
Auteur ...... : LMO
Créé le ...... : 29/01/2008
Modifié le ... : / /
Description .. :
Mots clefs ... :
*****************************************************************}
unit UOutilsDPVersEtafi;
////////////////////////////////////////////////... |
{***********UNITE*************************************************
Auteur ...... : LS
Créé le ...... : 07/08/2007
Modifié le ... : / /
Description .. : Source TOF de la FICHE : BTRECALCPIECE_MUL ()
Mots clefs ... : TOF;BTRECALCPIECE_MUL
*****************************************************************}
Unit BTRECAL... |
unit threadstorage;
interface
uses cclasses;
type
TTlsManager = class;
TTls = class
private
fManager: TTlsManager;
fTLS: TDictionary;
function GetValue(const id: longint): pointer;
procedure SetValue(const id: longint; value: pointer);
protected
procedure RegisterSlot(const id: longint);
procedure ... |
(*
--------------------------------------------------------
- Fonction : nbPiecesEst
- Auteur : Guillaume Proton
- Date de creation : 7 Juin 2018
-
- But : Renvoie le nombre de pièces "collées" entre elles à l'est de la pièce située à la position (i,j)
- Remarques : Aucune
- Pré ... |
unit test_1_HelloWorld;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ActnList,
OtlCommon,
OtlTask,
OtlTaskControl,
OtlEventMonitor, OtlComm;
type
TfrmTestHelloWorld = class(TForm)
btnHello : TButton;
lbLog : TListB... |
{$REGION 'EAN Calculation'}
// Unit Name: ISBNtoISBN13
// Author: David
// Purpose: Calculate EAN from ISBN
//
// Maintenance:
// -----------
// 02/24/03 dcf Created.
// 05/24/07 dcf Added ISBN10 function.
{$ENDREGION}
unit ISBNtoISBN13;
interface
uses SysUtils;
function ISBN10(const aISBN: String): String;
fun... |
unit unConvertirEnConvenio;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, unArtFrame, unArtDBAwareFrame,
unFraStaticCodigoDescripcion, ExtCtrls, unArt, General;
type
TTipoConvenio = (tcConvenio, tcConvenioCuotaBonif);
type
TfrmConvertirEnConvenio = class(... |
{*******************************************************}
{ }
{ Vladimir Gaitanoff Delphi VCL Library }
{ Clipboard utility routines }
{ }
{ Copyright (c) 1... |
unit uMenuSugar;
interface
{$I Compiler.inc}
uses
ToolsAPI, SysUtils, Windows,
Menus
;
type
TMenuSugar = class
private
FMenuItem: TMenuItem;
function GetSettingItem(aINTAServices: INTAServices): TMenuItem;
procedure DoSettingClick(Sender: TObject);
function GetAboutItem(aINTA... |
unit Nathan.UriBuilder;
interface
uses
System.SysUtils,
System.Net.URLClient,
Nathan.UriBuilder.Attribute,
Nathan.UriBuilder.Validator;
{$M+}
type
/// <summary>
/// This is a wrapper for TUri from namespace System.Net.URLClient.
/// The Constructor of Implementation has a parameter ... |
unit emualpha;
interface
type
PLookupLevel = ^TLookupLevel;
TLookupLevel = array[0..255] of byte;
TLookupTable = array[0..255] of TLookupLevel;
procedure EmulatedAlphaBlendFixed(Src, Dest: PByte; Width, Height, SrcJump, DestJump: longint; Alpha: byte);
procedure EmulatedAlphaBlendSrc(Src, Dest: PByte; Width, Heig... |
unit DropPIDLSource;
// -----------------------------------------------------------------------------
// Project: Drag and Drop Component Suite
// Component Names: TDropPIDLSource
// Module: DropPIDLSource
// Description: Implements Dragging & Dropping of PIDLs
// FROM your... |
unit frmSO8F10_3U;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls, Grids, DBGrids, DB ,ADODB ,IniFiles;
const
SELECT_MODE = 1;
IUD_MODE = 2;
type
TfrmSO8F10_3 = class(TForm)
Panel1: TPanel;
cobCompInfo: TComboBox;
Stat... |
{ RxDBGridPrintGrid unit
Copyright (C) 2005-2014 Lagunov Aleksey alexs@yandex.ru and Lazarus team
original conception from rx library for Delphi (c)
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Soft... |
unit uControleAcesso;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, FireDAC.Stan.Intf,
FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS,
FireDAC.Phys.Intf, Fir... |
(*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ma... |
program ArrayOfRecord;
const
maks = 3;
type
mhs = record
nim: string;
nama: string;
umur: integer;
n_kehadiran, n_tugas, n_uts, n_uas, n_akhir: real;
indeks: char; // 80 - A, 65 - B, 50 - C, 30 - D, E
end;
array_mhs = array[1..maks] of mhs;
var
mahasiswa: ... |
unit UntSaleCache;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, DBGridEhGrouping, GridsEh, DBGridEh, RzSplit, ExtCtrls, RzPanel,
StdCtrls, DB, DBClient,BaseFrm;
type
TFillDataDelegateFunc = function ( salesmen: string; autoDis: Boolean; totalAmo... |
unit Benchmark.Strings.WIDE;
interface
uses
Deltics.Smoketest,
Benchmark.Strings;
type
TWIDEPerformance = class(TStringPerformanceCase, INameCase)
private
function NameForCase: UnicodeString;
published
procedure Pos_Char;
procedure Pos_Str;
procedu... |
(******************************************************************************
* Copyright (C) 2023 Tomáš Horák
*
* 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, includi... |
unit glass;
uses graphABC, dog, eagle, chicken;
const
SQUARE_SIZE = 100;
WIDTH_GLASS = 600;
HEIGHT_GLASS = 500;
type
TMap = array [0..5, 0..7] of byte;
TGlass = class
private
x, y: integer;
d: array [1..6] of TDog;
e: TEagle;
c: array [1..6] of TChicke... |
//////////////////////////////////////////////////////////////////////////////
//
// Unit: zlib_static_tree
//
// Description: This file is a part of the zlib data
// compression library for delphi
// (re-implementation of zlib-1.2.3 in pure Delphi)
//
/... |
unit XokumToExcelXmlUnit;
interface
uses
Classes,
ExcelXmlUnit;
type
TXokumToExcelXml = class(TObject)
private
function CreateCascallFileStrings(const cascallFileName: string): TStrings;
strict private
FCorporateKey: string;
FDate: string;
FFullName: string;
FMonthNames:... |
unit uImportDataFaktur;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls, DB, ADODB, Grids, DBGrids;
type
TfImportDataFaktur = class(TForm)
lJudul: TLabel;
Shape1: TShape;
Label2: TLabel;
Label10: TLabel;
eLokasi: TEdit;
... |
{
Copyright (C) 2013-2023 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 a... |
unit CmdCookie;
////////////////////////////////////////////////////////////////////////////////
//
// Description£º CmdCookie
// Author£º lksoulman
// Date£º 2017-12-19
// Comments£º
//
////////////////////////////////////////////////////////////////////////////////
interface
uses
Windows,
Classes,
... |
program make_unidata;
{$mode objfpc}{$H+}
uses
Classes, SysUtils,
fpwidestring,
StrUtils,
unicodedata;
function IsUnicodeWordChar(AChar: WideChar): boolean;
var
NType: byte;
begin
if AChar='_' then
Exit(true);
if Ord(AChar) >= LOW_SURROGATE_BEGIN then
Exit(False);
NType := GetProps(Ord(ACha... |
unit UfrmRWPBase;
interface
uses
System.SysUtils, System.Variants, System.Classes, FMX.Graphics,
FMX.Controls, FMX.ExtCtrls, FMX.Forms, FMX.Dialogs, System.Actions, FMX.ActnList,
FMX.Menus, FMX.StdCtrls, FMX.Types, RWPInterface;
type
TfrmRWPBase = class(TForm, IRWPForm)
private
{ Private de... |
unit Test.ImportCommand;
interface
uses
DUnitX.TestFramework,
System.Classes, System.SysUtils, Commnd.Import, Model.Books, Proxy.Books,
Proxy.Readers, Proxy.Reports, Data.DataProxy.Factory;
{$M+}
type
[TestFixture]
TImportCommandFixture = class(TObject)
private
cmdImport: TTestImportCommand;
F... |
{ Gestion des confidentialités
--------------------------------------------------------------------------------------
Version | Date | Qui | Commentaires
--------------------------------------------------------------------------------------
8.10.001.004 08/08/07 JP Création de l'unité
-----------------... |
unit CRep;
{$mode objfpc}{$H+}
interface
uses
Classes, CRepDecoder;
type
TCRep = class
private
FOwnTree: TCRepDecoder;
FNewTree: TCRepDecoder;
public
constructor Create;
destructor Destroy; override;
function AddSentence(const ASentence: string): string;
procedure... |
unit PXL.Sysfs.PWM;
{
This file is part of Asphyre Framework, also known as Pascal eXtended Library (PXL).
Copyright (c) 2000 - 2015 Yuriy Kotsarenko
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General
Public License as published by the Free Softwa... |
{
Sample: RGBToGray
Project Git: https://github.com/CarlosHe/OpenCV-Android-Firemonkey
Author: Carlos Modesto
}
unit Main.View;
interface
uses
Androidapi.JNI.GraphicsContentViewText, Android.BitmapHelpers,
System.SysUtils, System.Types, System.UITypes, System.Classes,
System.Variants,
FMX.Types, FMX... |
unit IOCPMemory;
interface
uses Windows, Classes, SysUtils, ZLib;
const
M_SIZE_2K = 2048;
M_SIZE_4K = 4096;
M_SIZE_8K = 8192;
M_SIZE_16K = 16384;
M_SIZE_32K = 32768;
M_SIZE_64K = 65536;
M_SIZE_128K = 131072;
M_SIZE_256K = 262144;
M_SIZE_512K = 524288;
M_SIZE_1M = 1048576;
M_SIZE_2M = 2097152;
... |
unit cCadCategoria;
interface
uses System.Classes,
Vcl.Controls,
Vcl.ExtCtrls,
Vcl.Dialogs,
ZAbstractConnection,
ZConnection,
ZAbstractRODataset,
ZAbstractDataset,
ZDataset,
System.SysUtils;
type
TCategoria = class
private
ConexaoDB:TZConnection;
F_categoriaId... |
unit PortableDeviceEventConst;
interface
uses PortableDeviceApiLib_TLB, PortableDeviceConst;
var
WPD_EVENT_PARAMETER_PNP_DEVICE_ID:_tagpropertykey;
WPD_EVENT_PARAMETER_EVENT_ID:_tagpropertykey;
WPD_EVENT_NOTIFICATION: TGUID;
WPD_EVENT_OBJECT_ADDED,
WPD_EVENT_OBJECT_REMOVED,
WPD_EVENT_OBJECT_UPDATED,
WPD_EVENT_DEVICE_... |
unit MSVideo;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
Buttons, StdCtrls, ExtCtrls, VFW, VideoSettingsUnit, siComp, ComCtrls,
ImgList, ToolWin;
type
TFormatInfo = record
Format: Pointer;
FormatSize: Integer;
end;
TMSVideoForm = class(TForm)
si... |
unit uClient;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes,
System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs,
IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient, FMX.StdCtrls,
FMX.Edit, FMX.Controls.Presentation, FMX.ScrollBox, FMX.Memo,... |
unit xpgPLists;
{$B-}
{$H+}
{$R-}
{$I AxCompilers.inc}
interface
uses Classes, SysUtils, Contnrs,
xpgPUtils, xpgPXML;
type TErrorNotifyEvent = procedure(Sender: TObject) of object;
type TBaseXpgList = class(TObject)
private
function GetAsString(Index: integer): string; virtual; abstract;
procedure S... |
program AStrTest;
{$mode delphi}{$H+}
uses {$IFDEF UNIX} {$IFDEF UseCThreads}
cthreads, {$ENDIF} {$ENDIF}
FastMM4,
Classes,
SysUtils,
CustApp { you can add units after this };
type
{ TAStrTestApplication }
TAStrTestApplication = class(TCustomApplication)
private
procedure TestLargeAnsiStrings(S... |
unit Xmpp.extensions.si;
interface
uses
Element,XmppUri,xmpp.client.IQ,Jid,xmpp.extensions.filetransfer,xmpp.extensions.featureneg;
type
TSI=class(TElement)
const
TagName='si';
private
function FGetId:string;
procedure FSetId(value:string);
function FGetMimeType:string;
procedure FSetMimeType... |
unit uPersonDbMapper;
interface
uses
SysUtils, DB, ADODB,
uPerson;
type
TPersonDbMapper = class
private
FConnection: TADOConnection;
function CreateQuery: TADOQuery;
procedure DestroyQuery (Query: TADOQuery);
public
constructor Create (Connection: TADOConnection);
procedure Read (Person... |
unit NumericEdit;
interface
uses
Windows, Messages, Classes, Controls, StdCtrls, Variants, SysUtils,
EditWithButton;
type
TNumericEdit = class(TEditWithButton)
private
FFormat: string;
FMaxValue: Extended;
FMinValue: Extended;
FValue: Variant;
procedure CMTextChanged(var Message: TMessage... |
UNIT WS_ADT;
INTERFACE
TYPE
WordSet = POINTER;
(* standard operations *)
PROCEDURE InitWordSet(VAR s: WordSet);
FUNCTION IsEmpty(s: WordSet): BOOLEAN;
PROCEDURE Insert(VAR s: WordSet; value: STRING);
PROCEDURE Remove(VAR s: WordSet; value: STRING);
FUNCTION Contains(s: WordSet; value: STRING): BO... |
unit ThreeDRealListUnit;
interface
uses Classes, dialogs;
type
T3DRealList = class(TObject)
private
FList : TList;
FMaxX : integer;
FMaxY : Integer;
FMaxZ : integer;
procedure SetItem (X, Y, Z : integer; const AReal : double);
function GetItem (X, Y, Z : integer): double;
... |
unit ItemInterfaceUnit;
interface
uses System.Types, FortranGrapherTypes, FMX.Types, FMX.Graphics;
type
IDisplayItemList = interface;
TItemPosition = (ipRoot, ipDescendant, ipAncestor);
IDisplayItem = interface(IUnknown)
function GetSize: TSize;
function GetDescendants: IDisplayItemList;
function ... |
unit osm_xml_parser;
interface
uses
typex, xmltools, systemx, classes, stringx, commands_system, sysutils, memoryfilestream, helpers_stream, abstractdb;
type
TnodeData = record
id: int64;
lon,lat: double;
procedure WriteToStream(s: TStream);
procedure ReadFromSTream(s: TSTream);
end;
PNodeDa... |
{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Author: François PIETTE
Description: Demonstration for Server program using TWSocket.
Creation: 8 december 1997
Version: 1.03
EMail: francois.piette@overbyte.be http://www.overbyte.be
Support: Use the mailing list... |
{*******************************************************************************
作者: dmzn@163.com 2011-04-16
描述: 事件管理器对象,动态方法绑定管理.
备注:
*.实现动态方法绑定的类为TDynamicMethodManager.
*.TDynamicMethodManager用于动态绑定对象TMethod指针(方法),并维护原有指针.
*.源方法失效时,必须手动解除绑定,避免目标对象调用时异常.
*******************************************... |
unit KeyGenGlobalUnit;
{$J+}
interface
uses
Classes, SysUtils, Windows, Cipher, HcMngr, Registry, Math;
type
TKeyGenInfo = packed record
UserName: string[30];
Password: string[30];
DiskSN: string[30];
RunTimes: Integer;
TimesLimit: Integer;
UserEnable: Boolean;
DiskE... |
unit GuitarUnit;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, Vcl.MPlayer;
type
TForm1 = class(TForm)
MainTimer: TTimer;
procedure FormPaint(Sender: TObject);
procedure MainTimerTimer(Sender: TObject);
procedure FormCreate(Sender: ... |
unit PXL.SwapChains.DX9;
{
This file is part of Asphyre Framework, also known as Pascal eXtended Library (PXL).
Copyright (c) 2000 - 2015 Yuriy Kotsarenko
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General
Public License as published by the Free S... |
unit XLSImportCSV5;
{-
********************************************************************************
******* XLSReadWriteII V6.00 *******
******* *******
******* Copyright(C) 1999,2017 Lars Arvidsson, ... |
unit RepositorioLogErroImportPedido;
interface
uses DB, Auditoria, Repositorio;
type
TRepositorioLogErroImportPedido = class(TRepositorio)
protected
function Get (Dataset :TDataSet) :TObject; overload; override;
function GetNomeDaTabela :String; override;
f... |
program nameAndWeightAge;
var theName: string;
var age: integer;
var weight: real;
begin
writeln('Escreva seu nome:');
readln(theName);
writeln('Escreva sua idade:');
readln(age);
writeln('Escreva seu peso:');
readln(weight);
writeln('Seu nome é ', theName, ', sua idade é ', age, ' e seu peso é ', weight:2:2... |
{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Author: Arno Garrels <arno.garrels@gmx.de>
Creation: March 2009
Description: Test of buffered stream classes, Delphi 7 and better.
Version: 8.00
EMail: francois.piette@overbyte.be http://www.overbyte.be
Support: ... |
unit UserSectorMgr;
////////////////////////////////////////////////////////////////////////////////
//
// Description£º UserSectorMgr Interface
// Author£º lksoulman
// Date£º 2018-1-4
// Comments£º
//
////////////////////////////////////////////////////////////////////////////////
interface
uses
Wind... |
unit dog_said_meow.uImageLoader;
interface
uses
System.Types, System.Classes, System.SysUtils,
FMX.Graphics;
type
TImageLoader = class
strict private
const
cMinPictureId = 1;
cMaxPictureId = 4;
var
FCurrentImgIndex: Integer;
function GetCurrentImageFileName: string; inline;
public
... |
{$MODE OBJFPC}
program KSPREE;
uses
Math;
const
maxN = 20;
maxF = 100 * maxN + 1;
var
a, mark : array[1..maxN] of Integer;
n, res, res_, sum, count : Integer;
procedure Enter;
var
i : Integer;
begin
ReadLn(n);
for i := 1 to n do
begin
Read(a[i]);
Inc(sum, a[i]);
... |
unit MT3DTimeVaryConc;
interface
uses ANE_LayerUnit, SysUtils;
const
kMT3DTopElev = 'Top Elevation';
kMT3DBottomElev = 'Bottom Elevation';
kMT3DPointTimeVaryConc = 'MT3D Point Time Varying Constant Concentration Unit';
kMT3DAreaTimeVaryConc = 'MT3D Area Time Varying Constant Concentration Unit';
type
TMT3... |
unit umultilang;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Controls, Forms,StdCtrls, gvector,
gutil,{I like generics:)}XMLRead, XMLWrite, Dom, TypInfo;
const
LangPath = 'languages\';
type
{TOnChangeLang = function(obj: TObject): boolean of object;
TOnDefaultLang = procedure(obj: TObject);}
{ ... |
unit Viper.DependencyList;
{
Implements dependencies and dependents trees for a given service.
Can only host one or the other.
}
interface
{
A driver/service can depend on another driver/service or a group. Groups simply
reference driver/service's assigned group:
LoadOrderGroup in SCM's SERVICE_CONFIG.
... |
unit UImageAnalysisType;
interface
{class}
type DataFloat=double;
type PMas2=array of array of DataFloat;
type
Tcom=record // Complex value ;
re: DataFloat;
im: DataFloat;
end;
// type TLine=array of single;
// type TLineInt=array of datatype;
type
MasCom=array of Tcom; /... |
unit XmlDataBindingFormUnit;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, LoggerUnit, ReportersUnit, xokumDataBindingUnit,
ReporterUnit, LoggerInterfaceUnit;
type
TXokumDataBindingForm = class(TForm)
AbonneenummerLabeled... |
unit Utf8ToDefaultProcessorUnit;
interface
uses
DefaultToDefaultProcessorUnit, SysUtils;
type
TUtf8ToDefaultProcessor = class(TDefaultToDefaultProcessor)
public
function GetInputEncoding: TEncoding; override;
end;
implementation
{ TUtf8ToDefaultProcessor }
function TUtf8ToDefaultProce... |
unit cbUtilis;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Forms, IniFiles
{$IFDEF APPDEBUG}, CodeSiteLogging {$ENDIF};
{ --------------------------------------------------------------------- }
{ 顯示詢問 MessageBox }
{ --------------------------... |
unit AdManage;
interface
uses
SysUtils, Classes, DB, IBSQL, IBStoredProc, IBCustomDataSet;
type
TAdManageMod = class(TDataModule)
AdLoad: TIBSQL;
AdvedPLULoad: TIBSQL;
AdReloadProc: TIBStoredProc;
procedure DataModuleCreate(Sender: TObject);
procedure DataModuleDestroy(Sender: TObject);
pri... |
unit TmplFrm;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdActns, ActnList, Menus, Db, StdCtrls, Buttons, ExtCtrls, DBCtrls,
ComCtrls, Spin;
type
TTouristTemplateForm = class(TForm)
procedure FormCreate(Sender: TObject);
procedure FormActivate(Sender: TO... |
unit FastBitmap_OpenCL_Extension;
interface
uses
opencl_better, typex, types, sysutils, classes, systemx;
type
TCLBitmapInfo = record
width, height: int64;
yStrideInPixels: int64;
ptr: tDynByteArray;
pixelsize: int64;
function sz: int64;
function Iterations: int64;
procedure Init;
... |
unit ApiGeneratedSplitFull;
interface
uses
ApiGeneratedSplit, SplitGuess, SkyLists;
type
TApiGeneratedSplitFull = class(TApiGeneratedSplit)
private
FMatchedSplit: string;
FSplitMatchScore: Double;
FSubstitutions: TSkyStringStringList;
public
class function CreateFromSplitGuess(A... |
unit UFigyre;
interface
uses
Windows,
Graphics; {для TRect}
type
TFigyra = class
tip: char;
x,y:byte;
prenadl:byte;
nalitie:boolean;
procedure Ystanovit(NewX,NewY:byte);
Procedure Delete;
procedure Draw(Rect:TRect; canvas:TCanvas);
Constructor Create(NewTip... |
unit cbMain;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, cxControls, cxContainer, cxEdit, cxTextEdit, cxMemo, ExtCtrls,
cxLookAndFeels, Menus, cxLookAndFeelPainters, StdCtrls, cxButtons,
IdBaseComponent, IdComponent, IdTCPServer, cxGraphics, IdStack,
cx... |
//****************************************************************************
// Unit Name: Vcl.Imaging.pnglang
//****************************************************************************
// This file is auto generated with paxCompiler engine.
// Import mode: global import.
// ----------... |
unit uTypes;
interface
type
// Свойства предмета
TItemPropertiesResult = record
Armor, MinDamage, MaxDamage: Integer;
end;
//
TExplodeResult = array of string;
//
Array4 = array [0..3] of Integer;
//
TPoint = record
X, Y: Integer;
end;
//
TSize = record
Width, H... |
unit Migrations.Adapter.Firedac;
interface
uses Migrations.Common, Migrations.Intf, FireDAC.Comp.Client, FireDAC.DApt;
type
TDMigrationAdapterFiredac = class(TInterfacedObject,IDMigrationAdapter)
private
FConnection : TFDCustomConnection;
FMigrationDDL : IDMigrationDDL;
public
constructor Create(A... |
unit aiddbLkpUsers;
{ -------------------------------------------------------------------------------------------------
Name : aiddbLkpUsers
Author : Chris G. Royle (CGR20061216)
Description : Hi-Level Component which is intended to be used by Atlas Applications to provide a
BOMs User Lookup Comp... |
unit BuilderMain;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.Grids,
Vcl.Samples.Spin,
DataBuilder.Intf;
type
TfrmBuilder = class(TForm)
btnMakeJSON: TButton;
btnMakeXML: TBut... |
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ComCtrls;
type
TForm1 = class(TForm)
ColorDialog1: TColorDialog;
Button1: TButton;
UpDown1: TUpDown;
Edit1: TEdit;
procedure FormPaint(Sender: TObject);
... |
(*******************************************************************************)
(**** Autor: Aron Daniel Lopes ****)
(**** Data: 06/05/2011 ****)
(**** Este programa preenche uma matrix 5x5 com valores e realiza diversas ****)
(**** operações de soma e exibição de linhas, colunas, diagonais e... |
unit mDeviceList.Windows.Common;
interface
uses
mDevice.Windows,
System.Generics.Collections;
type
TDvcExistsFunc = reference to function(AInfo: TWinDevice; AFindIdx: Integer): Boolean;
TNotifyDevice = procedure(Sender: TObject; GUID: TGUID) of object;
IDeviceList = interface
['{9F77C1E9-0380-41AE-AB... |
unit WriteGWM_Solution;
interface
uses Windows, SysUtils, Forms, WriteModflowDiscretization, WriteGWM_DecisionVariables;
type
TSolutionWriter = class(TModflowWriter)
private
Root: string;
DecVarWriter: TWriteGWM_DecisionVariablesAndConstraintsWriter;
procedure AssignSimpleValues(out DELTA: double; ou... |
{======================== DCLSTATS.PAS =========================
Declarations and definitions for Keith's Stat System.
}
const
NumOfAL = 14;
NumOfNL = 16;
NumOfRL = 5;
NumOfPos = 11;
NumOfStatsH = 20;
NumOfStatsP = 17;
NumOfServ = 6;
type
Str2 = string[2];
Str3 ... |
unit SentenceListElement;
interface
uses
SkyLists, TypesConsts;
type
{ TSentenceListElement }
TSentenceListElement = class
private
FPosStr: string;
FRepresentation: string;
FSemRep: string;
FSentence: string;
FSentenceWords: TSkyStringStringList;
FPosWords: TSkyStrin... |
{***********UNITE*************************************************
Auteur ...... :
Créé le ...... : 09/08/2002
Modifié le ... : / /
Description .. : Source TOF de la FICHE : EXPORTDISPO ()
Mots clefs ... : TOF;EXPORTDISPO
*****************************************************************}
unit EXPORTDISPO_TOF;
inte... |
unit DW.Androidapi.JNI.Firebase;
{*******************************************************}
{ }
{ Kastri }
{ }
{ Delphi Worlds Cross-Platform Library ... |
unit uDmPrincipal;
interface
uses
System.SysUtils, System.Classes, FireDAC.Stan.Intf, FireDAC.Stan.Option,
FireDAC.Stan.Error, FireDAC.UI.Intf, FireDAC.Phys.Intf, FireDAC.Stan.Def,
FireDAC.Stan.Pool, FireDAC.Stan.Async, FireDAC.Phys, FireDAC.VCLUI.Wait,
FireDAC.Comp.UI, Data.DB, FireDAC.Comp.Client, FireDAC.P... |
unit funcs;
interface
uses
Winapi.Windows,
Winapi.ShellAPI,
System.Classes,
System.Win.Registry,
System.IniFiles,
System.SysUtils,
Vcl.Forms,
Vcl.Menus,
Vcl.Graphics,
JvTrayIcon,
acAlphaImageList,
loaders,
mons,
myhotkeys,
ConstStrings;
type
TImgFormats = (ifJpg, ifPng, ifBmp, ifGif);... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.