帮我看看这段程序!
#include<iostream.h>void main()
{
double R,Zhouchang;
cout<<endl<<"请输入边长:";
cin>>R;
Zhouchang=eee(R);
cout<<endl<<"周长:"<<Zhouchang;
}
double eee(double r)
{
return r*4;
}
执行时说两处错误 哪两处啊 看不出

#include <iostream> double comput_circle(double r) { return r*4; } int main() { double R, circle; std::cout << std::endl << "请输入边长:"; std::cin >> R; circle = comput_circle(R); std::cout << std::endl << "周长:" << circle << std::endl; system("pause"); return 0; }这样就没问题了,运行实例