Financial Management(1004)

#include 
#include
using namespace std;

void main()
{
int i;
int month=12;
double mean=0;

double num;
vector<double> vect;
vector<double>::iterator vit;
for (i=0;i {
cin>>num;
vect.push_back(num);
}

for (vit=vect.begin();vit!=vect.end();vit++)
{
mean+=*vit;
}
mean/=month;
cout<<'$'<
}

转载于:https://www.cnblogs.com/tiandsp/archive/2012/02/09/2344017.html

你可能感兴趣的:(Financial Management(1004))