921e5a0eb4
From-SVN: r14840
24 lines
221 B
C
24 lines
221 B
C
typedef struct
|
|
{
|
|
short v, h;
|
|
} S;
|
|
|
|
S a;
|
|
|
|
f (S pnt)
|
|
{
|
|
S mpnt, mtp;
|
|
|
|
(&pnt)->v -= 1;
|
|
mpnt = pnt;
|
|
mtp = a;
|
|
if (mtp.v != mpnt.v)
|
|
{
|
|
S tpnt;
|
|
|
|
tpnt = mtp;
|
|
mtp = mpnt;
|
|
mpnt = tpnt;
|
|
}
|
|
}
|