表示: Delphi C++
表示設定

System.Math.SumInt

提供:XE2 API Documentation
移動: 案内, 検索

Delphi

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

C++

extern PACKAGE int __fastcall SumInt(int const *Data, const int Data_Size);

プロパティ

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

説明

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

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

関連項目

以前のバージョン
他の言語