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_sub_assign.ck (1 of 486 files). Show all

Unified · Split

examples/array/array_sub_assign.ck+14−0
@@ -0,0 +1,14 @@
1// multi-dimensional array
2// array to array assignment
3
4int a[2][2][2];
5int b[2][2];
6// assignment
71 => b[0][1];
82 => b[0][0];
9
10// assign b to 0th element of a
11b @=> a[0];
12
13// verify
14if ( a[0][0][1] == 1 ) <<<"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