摘要: 错误原因:变量i只在for循环中可见,若在循环外使用需要单独定义 1 #include <iostream> 2 using namespace std; 3 4 int main(){ 5 int sum = 0; 6 int n = 5; 7 for(int i = 0 ; i < n ; i+ 阅读全文
posted @ 2020-01-25 23:09 cxc1357 阅读(2610) 评论(0) 推荐(0)