CS153/hw5/hw5programs/tc_eq2.oat

14 lines
228 B
Text
Raw Normal View History

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;
}