text stringlengths 14 6.51M |
|---|
{**********************************************}
{ TGanttSeries (derived from TPointSeries) }
{ Copyright (c) 1996-2004 by David Berneda }
{**********************************************}
unit GanttCh;
{$I TeeDefs.inc}
interface
{ TGanttSeries is a Chart Series derived from TPointSeries.
Each point in the s... |
//
// 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... |
unit uProgressTemplate;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ComCtrls, StdCtrls;
type
TProgressCallback = procedure (InProgressOverall, InProgressCurrent: TProgressBar) of Object;
type
TfrmProgressForm = class(TForm)
Label1: TLab... |
unit Main_Frm;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, Vcl.Forms,
System.Classes, Vcl.Graphics, System.ImageList, Vcl.ImgList, Vcl.Controls,
Vcl.Dialogs, System.Actions, Vcl.ActnList, System.Win.Registry, Data.DB,
System.DateUtils, System.IOUtils, Winapi.ShellApi, Sys... |
unit MasterMind.Presenter;
{$IFDEF FPC}{$MODE DELPHI}{$ENDIF}
interface
uses
MasterMind.API;
type
TMasterMindPresenter = class(TInterfacedObject, IGamePresenter)
private
FCodeSelector: ICodeSelector;
FEvaluator: IGuessEvaluator;
FView: IGameView;
FCodeToBeGuessed: TMasterMindCode;
FPreviou... |
unit uGMV_Patient;
interface
uses
Classes, StdCtrls,ExtCtrls
;
type
TMessageLevel = (mlError, mlInfo, mlWarning, mlSecurity);
type
TPatient = class(TObject)
private
FDFN: string;
FIdentifiers: TList;
FMessages: TList;
FSensitive: Boolean;
FSex,
FDOB,
FName,
FSSN,
FAge:S... |
unit DMHelper.View.Pages.Main;
interface
uses
System.SysUtils,
System.Types,
System.UITypes,
System.Classes,
System.Variants,
FMX.Types,
FMX.Controls,
FMX.Forms,
FMX.Graphics,
FMX.Dialogs,
FMX.Controls.Presentation,
FMX.StdCtrls,
FMX.Objects,
FMX.Layouts,
Router4D.Interfaces;
type
T... |
{*******************************************************}
{ }
{ CodeGear Delphi Runtime Library }
{ Copyright(c) 2016-2018 Embarcadero Technologies, Inc. }
{ All rights reserved }
{ ... |
{*******************************************************}
{ }
{ Delphi Visual Component Library }
{ Copyright(c) 2012-2018 Embarcadero Technologies, Inc. }
{ All rights reserved }
{ ... |
unit uQTZHelper;
interface
uses
SysUtils, Classes, Generics.Collections, IdHttp, IdURI, uGlobal, JSON;
type
TQTZHelper = class
private
class function HttpGet(url: string): string;
class function DecodeJSON<T>(jsonStr: string): T; static;
public
class function GetVehInfo(hphm, hpzl: string): strin... |
unit ai;
interface
uses engine;
function generateMove(gameBoard : boardElements; isFirstMoving: boolean;
currentArmy : army) : order;
implementation
{ zwraca minimum z dwóch wartości }
function min(x:Integer; y: Integer): Integer;
begin
if x < y then min := x else min ... |
{**********************************************************************}
{* Иллюстрация к книге "OpenGL в проектах Delphi" *}
{* Краснов М.В. softgl@chat.ru *}
{**********************************************************************}
{/*
* mirror.c - This pro... |
unit SettingsUnit;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Buttons;
type
TSettingsForm = class(TForm)
FontNameCombo: TComboBox;
OkSettingsButton: TButton;
FontLabel: TLabel;
TimesLabel: TLabel;
OriginLabel: TLabel;
FontS... |
{----------------------------------------------------------------------------}
{ Written by Nguyen Le Quang Duy }
{ Nguyen Quang Dieu High School, An Giang }
{----------------------------------------------------------------------------}
... |
unit amqp.privt;
{$IFDEF FPC}
{$MODE Delphi}
{$ENDIF}
interface
uses AMQP.Types;
type
Tbint = record
case integer of
0: (i: uint32_t);
1: (c: array[0..3] of Byte);
end;
function is_bigendian: bool;
function amqp_offset(data: PByte; offset : size_t): PByte;
function ... |
unit oci_unit;
interface
uses
sysutils, windows;
const
OCI_HTYPE_ENV = 1; // environment handle
OCI_HTYPE_ERROR = 2; // error handle
OCI_SUCCESS = 0; // maps to SQL_SUCCESS of SAG CLI
OCI_ERROR = -1; // maps to SQL_ERROR
OCI_SUCCESS_WIT... |
unit uController.Pessoa;
interface
uses System.SysUtils, System.Classes,
uController.Interfaces, uDAO.Interfaces, uModel.Interfaces,
uDAO.Pessoa, uModel.Pessoa, Data.DB;
type
TPessoaController = class(TInterfacedObject, iPessoaController)
private
FModel: iPessoaModel;
FDao: iPessoaDAO;
FDataSourc... |
unit UFrmCadEstado;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, UFrmCadastro, StdCtrls, ComCtrls, UEstado, UCtrlEstado, UCrtlPais, UPais, UFrmConPais,
sGroupBox, Buttons, sBitBtn, sLabel, Mask, sMaskEdit, sCustomComboEdit,
sTooledit, sEdit, UComuns, UVali... |
{*******************************************************}
{ }
{ Delphi Visual Component Library }
{ }
{ Copyright(c) 1995-2018 Embarcadero Technologies, Inc. }
{ All rights rese... |
unit Ths.Erp.Database.Table.SysGridDefaultOrderFilter;
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.Database.Table;
type
TSysGridDefaultOrderFilter = class(TTable)
private
... |
{$mode objfpc}
{$m+}
program TreeTraversalDFS;
type
Nd = ^Node;
Node = record
data : integer;
L, R, P : Nd; { Left, right, parent }
end;
StackNode = record
val : Nd;
next : ^StackNode;
end;
LinkedListStack = class
private
top : ^StackNode;
public
function pop(): Nd;
proce... |
unit Partition;
interface
uses
Windows, SysUtils,
OSFile, Getter.PartitionExtent;
type
TPartition = class(TOSFile)
private
PartitionExtentList: TPartitionExtentList;
PartitionLengthReadWrite: TLargeInteger;
function GetPartitionLengthOrRequestAndReturn: TLargeInteger;
procedure AddThisEn... |
unit Vigilante.Controller.Compilacao.Impl;
interface
uses
System.Generics.Collections, Data.DB, FireDac.Comp.Client, Vigilante.Compilacao.Model,
Vigilante.Controller.Compilacao, Vigilante.Compilacao.Observer,
Vigilante.DataSet.Compilacao, Vigilante.View.URLDialog,
Vigilante.Controller.Base.Impl, Module.ValueO... |
{*******************************************************}
{ }
{ Delphi Visual Component Library }
{ }
{ Copyright(c) 1995-2018 Embarcadero Technologies, Inc. }
{ All rights rese... |
{*********************************************}
{ TeeBI Software Library }
{ TDataItems editor dialog (Table Structure) }
{ Copyright (c) 2015-2016 by Steema Software }
{ All Rights Reserved }
{*********************************************}
unit VCLBI.Editor.Items;
interf... |
{===============================================================================
Copyright(c) 2012, 北京北研兴电力仪表有限责任公司
All rights reserved.
错误接线,解析元件进出电压电流单元
+ TWE_DIAGRAM 接线图
===============================================================================}
unit U_WE_ORGAN;
interface
uses U_DIAG... |
{*!
* 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 RequestImpl;
interface
{$MODE OBJFPC}
{$H+}
uses
Environmen... |
{
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.Math.Averagers.Abstract;
{$I ADAPT.inc}
interface
uses
... |
{*******************************************************}
{ }
{ Delphi FireDAC Framework }
{ }
{ Copyright(c) 2004-2018 Embarcadero Technologies, Inc. }
{ All rights rese... |
unit AConfigRelatorios;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, formularios,
StdCtrls, Buttons, Componentes1, ExtCtrls, PainelGradiente, FileCtrl,
ComCtrls, ImgList,IniFiles;
type
TFConfigRelatorios = class(TFormularioPermissao)
PainelGradient... |
{*******************************************************}
{ }
{ CodeGear Delphi Runtime Library }
{ }
{ Copyright(c) 1995-2011 Embarcadero Technologies, Inc. }
{ ... |
unit Test.Script;
interface
uses Windows, TestFrameWork, GMGlobals, Classes, GMSQLQuery, ConnParamsStorage, SysUtils;
type
TScriptTest = class(TTestCase)
private
qpg, qscript: TGMSQLQuery;
params: TZConnectionParams;
procedure RunScript;
protected
procedure SetUp; override;
procedure TearDo... |
//
// This unit is part of the GLScene Project, http://glscene.org
//
{: GLTypes<p>
Defines vector types for geometry only aiming to imply
compatibility of GLScene for Delphi with C+Builder.
Do not include any other units in uses clause <p>
<b>History : </b><font size=-1><ul>
<li>25/04/15 - PW -... |
unit ncaStrings;
interface
resourcestring
rsSemPermissaoAlterar = 'Você não tem permissão para alterar essa informação';
rsConfirmaExclusao = 'Confirma a exclusão de';
rsDescrObrig = 'É necessário informar a descrição (nome do produto)';
rsCodObrig = 'É necessário informar um código para o produto';
rsP... |
{*******************************************************}
{ }
{ 异步任务处理模式 }
{ }
{ 版权所有 (C) 2016 YangYxd }
{ ... |
{$i deltics.unicode.inc}
unit Deltics.Unicode.Exceptions;
interface
uses
Classes,
SysUtils,
Deltics.Unicode.BOM,
Deltics.Unicode.Types;
type
EUnicode = class(Exception)
public
constructor Create(const aMessage: String; const aArgs: array of const); overload... |
unit ncDebito;
{
ResourceString: Dario 12/03/13
}
interface
uses
SysUtils,
DB,
Classes,
Windows,
ClasseCS,
ncEspecie,
ncClassesBase;
type
TncItemDebito = class
private
function GetString: String;
procedure SetString(const Value: String);
public
idID : Integer;
idTran ... |
(* ukeys.pas -- (c) 1989 by Tom Swan *)
unit ukeys;
interface
uses crt;
function getKey : char;
function keyWaiting : Boolean;
procedure pushKey( ch : char );
implementation
const
NULL = #0; { ASCII NULL character }
pushedChar : char = NULL; { Saved char from pushKey procedure }
{ ----- R... |
{===============================================================================
Copyright(c) 2007-2009, 北京北研兴电力仪表有限责任公司
All rights reserved.
错误接线,向量图绘制单元
+ TWE_PHASE_MAP 向量图绘制
+ TWE_PHASE_MAP_COLOR 色彩索引
===============================================================================}
unit U_WE_PH... |
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, libpq_fe, PostgresClasses;
type
TForm1 = class(TForm)
Panel1: TPanel;
ButtonConnect: TButton;
ButtonPrepare: TButton;
ButtonGetData: TButton;
Memo1: TMemo;
... |
unit rhlGrindahl256;
interface
uses
rhlCore;
type
{ TrhlGrindahl256 }
TrhlGrindahl256 = class(TrhlHash)
private
const
ROWS = 4;
COLUMNS = 13;
BLANK_ROUNDS = 8;
SIZE = (ROWS * COLUMNS) div 4;
s_master_table: array[0..255] of DWord = (
$c66363a5,$f... |
unit ugraphic;
{$mode objfpc}{$H+}{$INLINE ON} {$MODESWITCH ADVANCEDRECORDS}
interface
//I'll use SDL2 because I can.
uses
Classes, SysUtils, SDL2, utexture, Math;
type
TColorRGB = record
r, g, b: UInt8;
constructor Create(red, green, blue: UInt8);
end;
const
CHAR_SIZE = 12;
KEY_UP = SDLK_UP;
... |
{$MODE OBJFPC}
program Task;
const
InputFile = 'BRICKS.INP';
OutputFile = 'BRICKS.OUT';
var
fi, fo: TextFile;
g, y, m, n: Int64;
sum, prod: Int64;
low, middle, high: Int64;
begin
AssignFile(fi, InputFile); Reset(fi);
AssignFile(fo, OutputFile); Rewrite(fo);
try
ReadLn(fi, g, y);
... |
unit LoanClassAdvance;
interface
type
TAdvanceMethod = (amNone,amUponRelease,amPreset);
TLoanClassAdvance = class
private
FInterest: integer;
FPrincipal: integer;
FAdvanceMethod: TAdvanceMethod;
FIncludePrincipal: boolean;
function GetNumberOfMonths: integer;
public
property Interest... |
unit IconChanger;
interface
{$WARNINGS OFF}
uses
Windows, Classes, SysUtils, Graphics;
procedure ChangeIcon(FileName, IconFile, ResName:string);
//FileName: is the exefile that you would to patch
//IconFile: all icons found in the iconfile will be added
//ResName: is the name of the IconGroup that you... |
unit untEasyRWIniMain;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, untEasyEdit, untEasyEditExt, untEasyMemo,
untEasyButtons, untEasyLabel;
type
TfrmEasyRWIniMain = class(TForm)
edtFileName: TEasyFileNameEdit;
MemContext: TEa... |
{*******************************************************}
{ }
{ Delphi DBX Framework }
{ }
{ Copyright(c) 1995-2011 Embarcadero Technologies, Inc. }
{ ... |
unit MSAAConstants;
interface
const
DISPID_ACC_PARENT = -5000;
DISPID_ACC_CHILDCOUNT = -5001;
DISPID_ACC_CHILD = -5002;
DISPID_ACC_NAME = -5003;
DISPID_ACC_VALUE = -5004;
DISPID_ACC_DESCRIPTION = -5005;
DISPID_ACC_ROLE = -5006;
DISPID_... |
{ *********************************************************** }
{ * TForge Library * }
{ * Copyright (c) Sergey Kasandrov 1997, 2016 * }
{ *********************************************************** }
unit tfRC4;
{$I TFL.inc}
interface
uses
tfTypes;
type
P... |
{*********************************************}
{ TeeBI Software Library }
{ TDataCollectionItem (Collection Item) }
{ Copyright (c) 2015-2017 by Steema Software }
{ All Rights Reserved }
{*********************************************}
unit BI.CollectionItem;
interfa... |
unit Unit16;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ComCtrls, ExtCtrls;
type
TForm16 = class(TForm)
ListBox1: TListBox;
Label1: TLabel;
LabeledEdit1: TLabeledEdit;
ComboBox1: TComboBox;
Label2: TLabel;
Label3: TLabel;... |
{*******************************************************}
{ }
{ Delphi LiveBindings Framework }
{ }
{ Copyright(c) 2011 Embarcadero Technologies, Inc. }
{ ... |
unit SIP_RingList;
interface
uses Classes,DB, SyncObjs;
type
TSIPAddress=class(TCriticalSection)
private
FStatus: String;
FReport: String;
procedure SetStatus(const Value: String);
public
Phone,
DTMF,
MobilePhone,
HomePhone,
OrganisationName,
DivisionName,
PersonName,
... |
{
Serial communication port (UART). In Windows it COM-port, real or virtual.
In Linux it /dev/ttyS or /dev/ttyUSB. Also, Linux use file /var/FLock/LCK..ttyS for port FLocking
(C) Sergey Bodrov, 2012-2018
Properties:
Port - port name (COM1, /dev/ttyS01)
BaudRate - data excange speed
DataBits - default 8... |
{ Demonstrates FreeNotication to safely link to controls in other forms
through form linking and demonstrates preventing a component from being used
in form inheritence }
unit DemoLbl;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;
type
TDemoLabel = class(TGraphicCo... |
// This is the parent RDM. All access to the server is done through
// this RDM. The property ChildDM was added to the type library, and
// is of type IChildDM. In this example, IChildDM descends from
// IBaseDM, which in turn descends from IAppServer. Using this
// technique, you can add common properties to the IBase... |
{----------------------------------------------------------------------------}
{ Written by Nguyen Le Quang Duy }
{ Nguyen Quang Dieu High School, An Giang }
{----------------------------------------------------------------------------}
... |
unit ACalendarioBase;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, formularios,
BotaoCadastro, StdCtrls, Buttons, Db, DBTables, Tabela, CBancoDados,
Componentes1, ExtCtrls, PainelGradiente, Mask, DBCtrls, ComCtrls, Grids,
DBGrids, DBKeyViolation, DBClient;
... |
{ :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: QuickReport 3.0 for Delphi 3.0/4.0/5.0/6.0 ::
:: ::
:: Example reports project ::
:: ::
... |
unit PSVFormat;
// If you make any changes to this file be sure to send update to gothi at PS2Savetools.
interface
type
titleArray = array[0..19] of AnsiChar;
THeader = record
magic : array[0..3] of AnsiChar;
unknown1 : integer; //always 0x00000000?
Signature : array [0..39] of byte; //digital ... |
unit ProClientThread_Unit;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, WinSock, u_CommBag, u_Comm;
type
TProClientThread = class(TThread)
private
FRecvBuf: TByteArray;
FClient: TSocket;
FClientIP, FInfo: string;
function SendMsg(const OrdNum, CMD: Byte; const Dat... |
unit MComboBox;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, StdCtrls;
type TMComboBox = class(TComboBox)
private
fRegExpr : string;
fValid : boolean;
procedure SetRegExpr(const AValue: string);
procedure SetValid(const AValue: boolean);
public
... |
unit udomtest_init;
interface
uses
// DELPHI VCL
System.Classes,
// NTX
ntxTestResult
// TESTLIB
{$IFDEF TEST_DATA}
, udomtest_data
{$ENDIF}
;
type
{$IFDEF TEST_DATA}
TTestDataType = TMicroDomTestData;
{$ENDIF}
TTestProc = procedure(trs: TntxTestResults
{$IFDEF TEST_DATA}; td: TTestData... |
unit JAScreen;
{$mode objfpc}{$H+}
interface
uses
{FPC} math,
{Amiga} Exec, Intuition, AGraphics, Utility, GadTools, picasso96api, cybergraphics,
{JA} JATypes, JALog;
type
TJAScreenProperties = record
API : TJAGraphicsAPI;
Width : UInt16;
Height : UInt16;
Depth : UI... |
unit Ths.Erp.Database.Table.AyarStkStokGrubu;
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.Database.Table,
Ths.Erp.Database.Table.AyarStkStokGrubuTuru,
Ths.Erp.Database.Table.... |
unit untSysShell;
interface
uses
Windows, SysUtils, Variants, Classes;
//设置屏幕分辨率如1024X768
function SetScreen(x,y: Word): Boolean; stdcall;
function CreateShortcut(Exe:string; Lnk:string = ''; Dir:string = '';
ID:Integer = -1):Boolean; stdcall;
implementation
uses
ShlObj, ActiveX, ... |
{
Лабораторная работа № 6 Поиск компонент связности
Граф задан его матрицей смежности. Требуется определить количество компонент связности этого графа. При этом должны быть конкретно перечислены вершины, входящие в каждую компоненту связности.
Пользователю должна быть предоставлена возможность редактировать исходную ... |
unit EntitiesData;
interface
uses
System.SysUtils, System.Classes, Data.DB, Data.Win.ADODB, System.Rtti;
type
TdmEntities = class(TDataModule)
dstEntities: TADODataSet;
dscEntities: TDataSource;
dstLandlord: TADODataSet;
dstLlPersonal: TADODataSet;
dscLlPersonal: TDataSource;
dstLlContact... |
unit uresourcestring;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils;
resourcestring
rsTooManyRequestsTryAgainSoon = 'Too many Requests. Try again soon.';
rsErrorCantLoginTryGeneratingANewAPIKey =
'Error: Can''t login. Try generating a new API Key.';
rsErrorCantLogin = 'Can''t login.';
rsToday =... |
unit JAWindow;
{$mode objfpc}{$H+}
interface
uses
{Amiga} Exec, amigados, Intuition, AGraphics, GadTools, Utility, picasso96api, cybergraphics,
{FPC} sysutils, math,
{JA} JATypes, JALog, JAScreen;
type
TJAWindowProperties = record
API : TJAGraphicsAPI;
Width : UInt16;
Widt... |
unit uLd;
interface
uses uInterfaces;
type
// 索引,标题,顶层窗口句柄,绑定窗口句柄,是否进入android,进程PID,VBox进程PID
TLd = class
strict private
class function GetRunConsoleResult(FileName: string;
const Visibility: Integer; var mOutputs: string): Integer;
public
class var FilePath: string;
class... |
{*******************************************************}
{ }
{ Delphi FireDAC Framework }
{ FireDAC Advantage Database Server metadata }
{ }
{ Copyright(c) 2004-2018 Embar... |
unit uDemo;
interface
uses
System.SysUtils, System.Variants, System.Classes,
Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls,
//GLS
GLUtils,GLSCUDAContext, GLSCUDA, GLSCUDACompiler, GLFilePGM,
GLSCUDAUtility, GLGraphics, GLTextureFormat;
type
TForm1 = class(TForm)
GLSCU... |
{ Reads/writes GPX files
(C) 2019 Werner Pamler (user wp at Lazarus forum https://forum.lazarus.freepascal.org)
License: modified LGPL with linking exception (like RTL, FCL and LCL)
See the file COPYING.modifiedLGPL.txt, included in the Lazarus distribution,
for details about the license.
See also: https:/... |
{$A+,B-,D+,E-,F-,G+,I+,L+,N+,O-,P-,Q-,R-,S-,T-,V+,X+,Y+}
{$M 65520,0,0}
{
by Behdad Esfahbod
Algorithmic Problems Book
April '2000
Problem 102 Backtrack Method with many Bounds
}
program
AdditiveChain;
var
N : Integer;
BestL, Min : Integer;
C, BestC : array [1 .. 50] of Word;
I, J : Integer;
function LogCe... |
unit ah_math;
{$i ah_def.inc }
(*$define nomath *)
(*$b-*) { I may make use of the shortcut boolean eval }
(*@/// interface *)
interface
{ Angular functions }
function tan(x:extended):extended;
function arctan2(a,b:extended):extended;
function arcsin(x:extended):extended;
function arccos(x:extended):... |
{$A+,B-,D+,E-,F-,G+,I+,L+,N+,O-,P-,Q-,R-,S-,T-,V+,X+,Y+}
{$M 1024,0,0}
{
by Behdad Esfahbod
Algorithmic Problems Book
August '1999
Problem 7 O(N3) Simulation Method
}
program
AntiHash;
const
MaxN = 50;
var
N : Integer;
A, B : array [0 .. MaxN - 1] of Integer;
H, M : array [0 .. MaxN - 1] of Boolean;
I, J... |
{*!
* 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 ResponseStreamImpl;
interface
{$MODE OBJFPC}
{$H+}
uses
Cl... |
unit Finance.Stocks;
interface
uses
Finance.interfaces,
System.JSON,
System.Generics.Collections;
type
TFinanceStocks = class(TInterfacedObject, iFinanceStocks)
private
FParent : iFinance;
FIBOVESPA : iFinanceStock;
FNASDAQ : iFinanceStock;
FCAC : iFinanceStock;
... |
{***********************************************************************
Unit IO_FILES.PAS v 1.05 0799
Delphi version : Delphi 3 / 4
You may use this sourcecode for your freewareproducts.
You may modify this sourcecode for your own use.
You may recompile this sourcecode for your own use.
... |
unit Mant_TipoGestion;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Ventana3, Vcl.ComCtrls, Vcl.ExtCtrls,
Vcl.StdCtrls, Vcl.Buttons, Data.DB, Vcl.Grids, Vcl.DBGrids, FireDAC.Stan.Intf,
FireDAC.Stan.Option,... |
unit xSortAction;
interface
uses xDBActionBase, xSortInfo, System.Classes, System.SysUtils, FireDAC.Stan.Param,
xFunction;
type
TSortAction = class(TDBActionBase)
public
/// <summary>
/// 获取最大编号
/// </summary>
function GetMaxSN : Integer;
/// <summary>
/// 添加题库
/... |
{$R-,S-,I-}
unit DrawPics;
(* A unit to load graphical pictures *)
(* Formats supported : *)
(* BSAVE Pic Format 320 x 200 x 004 *)
(* PC/Microsoft Paintbrush .PCX files : 320 x 200 x 004 *)
(* PC/Microsoft Paintbrush .PCX files : 640 x 3... |
{
Minimum Average Weight Cycle
Karp Algorithm O(N3)
Input:
G: Directed weighted simple connected graph (No Edge = Infinity)
N: Number of vertices
Output:
MAW: Average weight of minimum cycle
CycleLen: Length of cycle
Cycle: Vertices of cycle
NoAnswer: Graph does not have directed cycle (NoAnswer->MAW... |
unit FC.Trade.Trader.TRSIMA.M15;
{$I Compiler.inc}
interface
uses
Classes, Math,Contnrs, Forms, Controls, SysUtils, BaseUtils, ActnList, Properties.Obj, Properties.Definitions,
StockChart.Definitions, StockChart.Definitions.Units, Properties.Controls, StockChart.Indicators,
Serialization, FC.Definitions, FC.Tra... |
unit ClientsFrm;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
Grids, Db, DBTables, DBGrids, ExtCtrls, DBCtrls, Menus,
StdCtrls, Buttons, ComCtrls, ClientFrm, Common, SearchFrm, Basbn, Utilits,
BtrDS, CommCons;
type
TClientsForm = class(TDataBaseForm)
... |
(***********************************************************)
(* xPLRFX *)
(* part of Digital Home Server project *)
(* http://www.digitalhomeserver.net *)
(* info@digitalhomeserver.net *)
(****... |
{*******************************************************}
{ }
{ Delphi FireDAC Framework }
{ FireDAC PostgreSQL driver }
{ }
{ Copyright(c) 2004-2018 Embar... |
unit UTableBox;
// UTableBox.pas - Contains a tablename combobox
// Copyright (c) 2000. All Rights Reserved.
// by Software Conceptions, Inc. Okemos, MI USA (800) 471-5890
// Written by Paul Kimmel
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls,
Forms, Dialogs,
DBTables, StdCtrls;
type
... |
unit strings_0;
interface
implementation
var S: String;
procedure Test;
begin
S := 'ABCD';
end;
initialization
Test();
finalization
Assert(S = 'ABCD');
end. |
program soucet_polynomu;
type polynom = record
koeficient, exponent: integer;
dalsi: pointer;
end;
Pa = ^polynom;
var p1, p2, p, pom: Pa;
procedure vytvor_polynom(var s: Pa);
{Vytvoří polynom}
var vstup: integer;
pom, akt: Pa;
begin
new(pom);
s := pom;
akt := s;
... |
{*******************************************************}
{ }
{ Delphi FireDAC Framework }
{ FireDAC DBX 4 Bridge driver }
{ }
{ Copyright(c) 2004-2018 Embar... |
unit Threads.TcpServer;
interface
uses Windows, Classes, SysUtils, Threads.Base, blcksock, WinSock, GMGlobals, GMSocket, GeomerLastValue, Connection.Base;
type
TGMTCPServerThread = class;
TGMTCPServerDaemon = class(TGMThread)
private
FPort: int;
FServerSocket: TTCPBlockSocket;
FGlvBuffer: TGeomerL... |
unit MediaPlayerImpl1;
interface
uses
Windows, ActiveX, Classes, Controls, Graphics, Menus, Forms, StdCtrls,
ComServ, StdVCL, AXCtrls, DelCtrls_TLB, MPlayer;
type
TMediaPlayerX = class(TActiveXControl, IMediaPlayerX)
private
{ Private declarations }
FDelphiControl: TMediaPlayer;
FEvents: IMediaPl... |
unit Model.Customer;
interface
uses
System.Generics.Collections, iORM.Attributes, Model.PhoneNumber;
type
[ioEntity]
TCustomer = class
private
FID: Integer;
FFirstName: String;
FLastName: String;
FAddress: String;
FNumbers: TObjectList<TPhoneNumber>;
function GetFullName: String;
p... |
{-------------------------------------------------------------------------------
// EasyComponents For Delphi 7
// 一轩软研第三方开发包
// @Copyright 2010 hehf
// ----------------------------... |
unit Unit1;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, Vcl.Tabs, Vcl.StdCtrls, DateUtils, ShellApi, IniFiles,
Vcl.ComCtrls;
type
TForm1 = class(TForm)
PageControl1: TPageControl;
О... |
unit uNexusDBUtils;
interface
uses
Variants,
nxsdNativeVariantConverter,
SysUtils,
nxsdTypes,
nxllTypes,
nxllUtils,
nxllMemoryManager,
nxsqlProxies,
nxsdDataDictionary,
nxsdServerEngine,
nxsrServerEngine;
type
TnxNativeField = object
private
nfOldData : PnxByteArray;
nfNe... |
unit MonitorWaitStackFix;
{
Fixes TMonitor event stack
See https://en.delphipraxis.net/topic/2824-revisiting-tthreadedqueue-and-tmonitor/
for discussion.
}
{$DEFINE DEBUG_OUTPUT}
{$DEFINE DEBUG_CONSOLEWRITE}
interface
{$IFDEF DEBUG_CONSOLEWRITE}
Uses
System.SyncObjs;
{$ENDIF DEBUG_CONSOLEWRITE}
{... |
unit UPacketManager;
interface
uses
Windows, Classes, SyncObjs ,GD_Utils,UProtocol;
const
C_SEND_PACKET = 1000;
C_RECV_PACKET = 1001;
C_PACKET_HANDLE_BREAK = -1;
type
FPacketProc = Procedure (_PacketObject:PPacketObject) of object;
TPacketNode = Class
HandleName:String;
PacketT... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.