M0 :=(D0=1 AND NOT X5 AND X7 AND X8) OR D2=1 OR D5=1 OR D12 =1;
IF M0= TRUE AND LDP(TRUE,M1) THEN
D100 :=D100+1;
END_IF;
IF M0= TRUE AND LDP(TRUE,M2) THEN
D101 :=D101+1;
END_IF;
IF M0= TRUE AND LDP(TRUE,M3) THEN
D102 :=D102+1;
END_IF;
IF M0= TRUE AND LDP(TRUE,M4) THEN
D103 :=D103+1;
END_IF;
IF M0= TRUE AND LDP(TRUE,M5) THEN
D104 :=D104+1;
END_IF;
IF M0= TRUE AND LDP(TRUE,M6) THEN
D105 :=D105+1;
END_IF;
IF M0= TRUE AND LDP(TRUE,M7) THEN
D106 :=D106+1;
END_IF;
其實(shí)我看出來你想說什么了,是我的會我會用標(biāo)簽的布爾數(shù)組,要加的數(shù)據(jù)也是數(shù)組;
用FOR去寫就好了。我覺得你一定會用變址,因為你的思想已經(jīng)被束縛了