CS153/hw6/hw5programs/tc_eq2.oat
jmug cfe502c598 Add all the assignment code.
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
2025-01-24 18:59:28 -08:00

14 lines
No EOL
218 B
Text

struct S {int x; bool y}
struct T {int x; bool y}
int program(string[] args) {
var z = 0;
var s = new S{x=3;y=true};
var t = new T{x=3;y=true};
if (s == t) {
z = 17;
} else {
z = 3;
}
return z;
}