题目 有三个候选人,每个选民只能选一人,编写一个统计选票的程序,先后输入被选人的名字,最后输出各人得票结果。 代码 #include <stdio.h> #include <string.h> struct Person { char name[20]; int count; }; int