summaryrefslogtreecommitdiffstats
path: root/src/CBot/TestCBot/array.txt
blob: 081b60ef0e9fcc97ac470ccf1160e26150a70126 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
public extern void TestTableau ()
{
	int		tableau [ 12 ] ;

	point	array[ 12 ] [ 14 ] ;

	point	z�ro ( 1, 2 ) ;
	point	a = z�ro ;

	for ( int i = 0 ; i < 10 ; i++ ) array[ i ] [ i ]= z�ro ;

	array[ 5 ] [3 ] . x =1.5 ;

	array[ 2 ] [ 2 ] . y = array[ 5 ] [ 5 ] . x ;

	array[ 4 ] = array [ 2 ] ; 

	for ( int i = 0 ; i < 10 ; i++ ) for ( int j = 0 ; j < 4 ; j++ ) println ( i, j, array [ i ] [ j ]  ) ; 

	show( z�ro, a, array );

}