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

Unified · Split

examples/array/array_assign.ck+13−0
@@ -0,0 +1,13 @@
1// 17.ck : partial array
2
3// declare int array 2x2
4int x[2][2];
5
6// assign
72 => x[1][1];
8
9// assign partial array reference to 'y'
10x[1] @=> int y[];
11
12// test
13if( y[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