Перенос страниц
This commit is contained in:
parent
4d57446057
commit
4c954c9186
129 changed files with 14 additions and 15 deletions
|
@ -0,0 +1,10 @@
|
|||
import std.stdio;
|
||||
|
||||
void main()
|
||||
{
|
||||
int[] a = new int[5]; // Создать массив из пяти целых чисел
|
||||
int[] b = a[3 .. 5]; // b ссылается на два последних элемента a
|
||||
b[0] = 1;
|
||||
b[1] = 3;
|
||||
assert(a == [ 0, 0, 0, 1, 3 ]); // a был изменен
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue