CS153/hw5/hw5programs/tc_eq2.oat
jmug 9224001a22 Update hw5 to a newer version.
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
2025-01-24 21:10:31 -08:00

14 lines
No EOL
228 B
Text

struct S {int x; bool y}
struct T {int x; bool y}
int program(int argc, 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;
}