判断函数的正误,帮忙运行一下啊

#include "stdafx.h"

#include<iostream>
#define PI 3.1415926 ;
using namespace std ;
double Area (int radius)
double Length(int radius)
int main(int argc, char* argv[])
{
double C_Length, C_Area;
int R_adius;
cout<<"请输入圆的半径:"<<endl;
cin>>R_adius;
C_Length=double Length(int R_adius);
C_Area =double Area (int R_adius);
cout<<"圆的周长为:"<<C_Length<<" "<<"圆的面积为:"<<C_Area<<endl;
return 0;
}
double Area (int radius)
{
return(PI*radius*radius);
}
double Length(int radius)
{
return(PI*radius*2) ;
}

#include<iostream>
#define PI 3.1415926
using namespace std ;
double Area (int radius);
double Length(int radius);
void main(int argc, char* argv[])
{
double C_Length, C_Area;
int R_adius;
cout<<"请输入圆的半径:"<<endl;
cin>>R_adius;
C_Length=Length(R_adius);
C_Area =Area (R_adius);
cout<<"圆的周长为:"<<C_Length<<" "<<"圆的面积为:"<<C_Area<<endl;
}
double Area(int radius)
{
return(PI*radius*radius);
}
double Length(int radius)
{
return(PI*radius*2);
}
这是改后的,宏定义后面不需要分号,还有一些小错误,自己运行试试,可以的话记得采纳,不可以hi我
温馨提示:答案为网友推荐,仅供参考
第1个回答  2010-11-29
题目错喇叭!!!!!!!!!!!!!!!!!
第2个回答  2010-11-30
1.错的。例如y=|x|
2.对的。用反证法,假设f(x)在R上是单调减函数,则必有f(2)<f(1),与已知条件矛盾
3.错的。例如当x≤0时,y=x²;当x≥0时,y=2x
4.对的。用反证法,假设(x)是偶函数,则必有f(-2)=f(2),与已知条件相矛盾
5.错的。例如y=sinπx

注.3-5的定义域也要为R吧,讨论奇偶定义域要先关于原点对称
希望对你有帮助
相似回答