Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue