Add all the assignment code.

Signed-off-by: jmug <u.g.a.mariano@gmail.com>
This commit is contained in:
Mariano Uvalle 2025-01-24 18:59:28 -08:00
parent 58c6b1f81c
commit cfe502c598
1277 changed files with 48709 additions and 1 deletions

16
hw6/hw5programs/ifq4.oat Normal file
View file

@ -0,0 +1,16 @@
struct S { int x; int y }
int sum(S? s) {
if?(S x = s) {
return x.x;
} else {
return 0;
}
}
int program (int argc, string[] argv) {
var x = 0;
x = x + sum(S null);
x = x + sum(new S{x=4; y=5});
return x;
}