Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
16
Task/Compound-data-type/Stata/compound-data-type.stata
Normal file
16
Task/Compound-data-type/Stata/compound-data-type.stata
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
mata
|
||||
struct Point {
|
||||
real scalar x, y
|
||||
}
|
||||
|
||||
// dumb example
|
||||
function test() {
|
||||
struct Point scalar a
|
||||
a.x = 10
|
||||
a.y = 20
|
||||
printf("%f\n",a.x+a.y)
|
||||
}
|
||||
|
||||
test()
|
||||
30
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue