добавлен исходный код и ссылки
This commit is contained in:
parent
c83ed6cf42
commit
4be7b9c4ce
15 changed files with 438 additions and 1 deletions
15
01-знакомство-с-языком-d/src/chapter-1-3/app.d
Normal file
15
01-знакомство-с-языком-d/src/chapter-1-3/app.d
Normal file
|
@ -0,0 +1,15 @@
|
|||
import std.stdio;
|
||||
|
||||
void fun(ref uint x, double y)
|
||||
{
|
||||
x = 42;
|
||||
y = 3.14;
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
uint a = 1;
|
||||
double b = 2;
|
||||
fun(a, b);
|
||||
writeln(a, " ", b);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue