History

moving examples to top dir

Ge Wang committed 9 years ago

Commit 35ca2f61 parent fd011ef486 files · +-44 −-44Browse files

Showing the changes to examples/array/array_mdim.ck (1 of 486 files). Show all

Unified · Split

examples/array/array_mdim.ck+14−0
@@ -0,0 +1,14 @@
1// 15.ck : multi-dimensional array instantiation
2
3// delcare int array 2x2x2
4int a[2][2][2];
5// delcare float array 2x2x2
6float b[2][2][2];
7// assign
85 => a[1][1][1] => b[1][1][1];
9
10// multi-dimensional array initialization
11[ [1,2], [3,4] ] @=> int c[][];
12
13// test
14if( a[1][1][1] == 5 && b[1][1][1] == 5.0 && c[0][1] == 2 ) <<<"success">>>;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t