引数名 | 初期値 | I/O | 詳細 |
array[] | - | In | チェックする配列 |
#property strict // strictは絶対に削除しない事 //+------------------------------------------------------------------+ //| プログラムスタート //+------------------------------------------------------------------+ void OnStart(){ int test_array[10]; // テスト配列 ArrayInitialize( test_array , 0 ); // 配列を初期化 int array_size = ArraySize( test_array ); // 配列サイズ取得 test_array[array_size - 1] = 99; // 最後の配列に値を設定 for( int icount = 0; icount < array_size; icount++ ) { printf( "test_array[%d]=%d" , icount, test_array[icount] ); } }
test_array[0]=0 test_array[1]=0 test_array[2]=0 test_array[3]=0 test_array[4]=0 test_array[5]=0 test_array[6]=0 test_array[7]=0 test_array[8]=0 test_array[9]=99