Family Day update
This commit is contained in:
parent
aac6731f2c
commit
9ad63ea473
2442 changed files with 39761 additions and 8255 deletions
14
Task/Compound-data-type/Pike/compound-data-type.pike
Normal file
14
Task/Compound-data-type/Pike/compound-data-type.pike
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
class Point {
|
||||
int x, y;
|
||||
void create(int _x, int _y)
|
||||
{
|
||||
x = _x;
|
||||
y = _y;
|
||||
}
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
object point = Point(10, 20);
|
||||
write("%d %d\n", point->x, point->y);
|
||||
}
|
||||
4
Task/Compound-data-type/Vala/compound-data-type.vala
Normal file
4
Task/Compound-data-type/Vala/compound-data-type.vala
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
struct Point {
|
||||
int x;
|
||||
int y;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue