This is what I have. Everything works the way it is suppose to but the addition of the arrays/vectors are not right. The DOS prompt is at the bottom with an explanation of what I need help with. Thank you.
#include <iostream>
using namespace std;
int main()
{
const int size = 100;
int i;
double vector1[size];
double vector2[size];
double vector3[size];
int x;
double result[size];
Enter size of vector [1-100]: 3
Enter the component data: 1
Enter the component data: 2
Enter the component data: 3
1
2
3
Enter the component data: 1
Enter the component data: 2
Enter the component data: 3
1
2
3
Enter the component data: 1
Enter the component data: 2
Enter the component data: 3
1
2
3
1 1 1
2 2 2
3 3 3
Result vector (addition):
369Press any key to continue . . .
***I need to add the components in each column. Instead of getting 3,6,9 as the result.... I need it to add up to 6, 6, 6,. These are just arbitrary numbers I made up.