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
12
hw6/hw5programs/compile_assign_struct.oat
Normal file
12
hw6/hw5programs/compile_assign_struct.oat
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
struct Point {
|
||||
int x;
|
||||
int y
|
||||
}
|
||||
|
||||
int program(int argc, string[] argv) {
|
||||
var p = new Point {x = 3; y = 4 };
|
||||
p.x = 5;
|
||||
p.y = p.x + p.y + 3;
|
||||
p.x = p.y + 4;
|
||||
return p.x;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue