int a = 0, b = 0, c = 0, d = 0;
temp = head;
while (temp->next != NULL)
{
if (temp->mscore > h && temp->kscore > h)//德才兼备
{
a++;
}
else if (temp->mscore > h && temp->kscore < h)//德胜才
{
b++;
}
else if (temp->mscore > temp->kscore && temp->mscore < h)//“才德兼亡”但尚有"德胜才"
{
c++;
}
else if (temp->kscore > temp->mscore && temp->kscore < h)//其他
{
d++;
}
temp = temp->next;
}
int a1 = 0, b1 = 0, c1 = 0, d1 = 0;
struct cnt A[a], B[b], C[c], D[d];
已结题
请问为什么vc报错说不能用变量定义数组?不是可以吗?
- 写回答
- 好问题 提建议
- 追加酬金
- 关注问题
- 分享
- 邀请回答