要包含头文件
-----------------------------------------
#include "stdafx.h"
#include
#include
#include
#include
using namespace std;
void main()
{
vector
double wendu;
while(cin>>wendu&&wendu!=0)
wendus.push_back(wendu);
double sum=0;
for(int t=0;(unsigned int)t
cout<<"中间值:;"<
因为你把函数写在了主程序的下方,所以编译器开始不能进行函数的读取。所以在运行时没有发现