September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 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