出错现场: int main() { int i; for(int i = 0; i < 10; i++) …… } i 这个变量名重复使用 转载于:https://www.cnblogs.com/cszlg/archive/2013/02/15/2912729.html