#include <iostream>
#include<conio.h>
using namespace std;
int main()
{
int Array[5];
int i;
int total;
int j;
for(i=0; i<5; i++)
{
cout<<"Enter the Numbers : ";
cin>>Array[i];
}
total+=Array[i];
cout<<total<<endl;
getch();
return 0;
}
我试过上面的代码。我想要做的是添加从用户那里获取的数字,但我得到了一些其他结果.. 谁能告诉我如何在上面的程序中添加输入?提前致谢