Okay, I'm just going to get this out of the way right now. I am new to C++ programming. I have done CSS and HTML and am proficient in it. But anyway, I just wrote my first program for my class. My teacher literally doesn't know what he is doing and asked students how to do it. I feel ripped off, but I am trying to learn on my own. So, Here is what I have so far.

The program is trying to add up the 6 figures and then tell me how many figures it has added up.

#include <iostream>
using namespace std;

int main ()
{
int X = A[X];
float A[6]= {325.25, 154.56, 23.00, 25.25, 101.71, 400.23};
double sum= A[0] + A[1] + A[2] + A[3] + A[4] + A[5];
cout<< "Sum is:" <<sum<< endl;
cout<< "amount is:" << A[X+1]<<endl;
system("pause");
return 0;

}

Any ideas on what I am doing wrong? Thank you in advance.