System.Math.SumInt

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function SumInt(const Data: array of Integer): Integer;

C++

extern DELPHI_PACKAGE int __fastcall SumInt(const int *Data, const int Data_High);

プロパティ

種類 可視性 ソース ユニット
function public
System.Math.pas
System.Math.hpp
System.Math System.Math

説明

整数配列内の要素の総和を返します。

Sum は、データ配列パラメータ Data に格納されているすべての値の総和を返します。C++ では、Data_Size パラメータは配列 Data 内の最終データ値のインデックス(データ項目数 - 1)を指定します。

関連項目