1 2 3 4 5 6 7 8 9 10 11
typedef struct{short ttype;float s;}T; short t[8][8]; T f(T t2,T t1) { T x; if (t1.ttype == 1) x.ttype = t[t2.ttype][t1.ttype], x.s = 1; return x; }