error?错在?
来源:百度知道 编辑:UC知道 时间:2024/07/01 14:41:24
#include <iostream.h>
#define Pe 3.1415926
double v(double a,double b) // V=体积,A=半径,B=高
{
double c;
c=a*a*Pe/2;
return c;
}
int main()
{
double x,y,vv;
cout<<"输入半径:";
cin>>x;
cout<<"输入高:";
cin>>y;
vv=v(double a,double b);
cout<<"体积="<<vv;
return 0;
}
#define Pe 3.1415926
double v(double a,double b) // V=体积,A=半径,B=高
{
double c;
c=a*a*Pe/2;
return c;
}
int main()
{
double x,y,vv;
cout<<"输入半径:";
cin>>x;
cout<<"输入高:";
cin>>y;
vv=v(double a,double b);
cout<<"体积="<<vv;
return 0;
}
main里面 vv=v(double a,double b); 改成 vv=v(x,y);
#include "iostream.h"
#define Pe 3.1415926
double v(double a,double b) // V=体积,A=半径,B=高
{
double c;
c=a*a*Pe/2.0;
return c;
}
int main()
{
double x,y,V;
cout<<"输入半径:";
cin>>x;
cout<<"输入高:";
cin>>y;
V=v(x,y);
cout<<"体积="<<V;
getchar();
getchar();
return 0;
}
对的
错在哪里啊?C++ error C2601意义
director player error :script error 报这个错怎么解决?
在汇编masm611中编译时总是报错:error A2006:undegined Symbol :start
请问高手下面一个C程序错在哪里了,怎么C老说有一个Error呢??
Error Reporting Service在电脑的什么地方
在C语言中Divide error是什么意思?
电脑在死机按重启后出现Stop:c000021a unknown hard error unknown hard error,这是什么意思?
电脑启动时出现error.pif错误,在C盘根目录有error.pif的快捷方式
在网上看电影出现提示error 0×1 occur when parsewmv error file
我的电脑在安装显示stop:c0000221 unkown hard error unknown hard error,请问怎么回事