Add all the assignment code.
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
This commit is contained in:
parent
58c6b1f81c
commit
cfe502c598
1277 changed files with 48709 additions and 1 deletions
13
hw6/hw5programs/compile_struct_array.oat
Normal file
13
hw6/hw5programs/compile_struct_array.oat
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
struct Test {
|
||||
int[] xs;
|
||||
int y;
|
||||
int[] zs
|
||||
}
|
||||
|
||||
global arr_x = new int[] {3,4,5};
|
||||
global arr_z = new int[] {4,5,6};
|
||||
|
||||
int program(int argc, string[] argv) {
|
||||
var t = new Test {xs=arr_x; y=3; zs=arr_z};
|
||||
return t.xs[0] * t.zs[1];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue