为什么我的小程序不能调用啊?我用的是devc++5编译的,由于小弟新手,所以分数不高!求高手赐教!
#include <cstdlib>#include <iostream>
#include<math.h>
using namespace std;
int main ()
{double a,b;
double c;
cout<<"请输入你要运行的数";
cin>> a;
cin>>b;
c= QQ( double a,double b);
cout<<"运行结果是"<<c;
type QQ(double x, double y)
{
int d;
d=(x+y)/2
returan d
}
system("PAUSE");
return EXIT_SUCCESS;
}