C++中问题
#include<iostream>using namespace std;
#define pi 3.14
int main()
{
float r;
cout<<"请输入圆的半径:";
cin>>r;
cout<<"圆的周长是:"<<2*pi*r<<end1;
cout<<"圆的面积是:"<<pi*r*r<<end1;
return 0;
}
书上写的怎么老是调试不出来呢 调试完总是出现这句话Error spawning cl.exe。
2010-06-16 15:35
2010-06-16 15:37
2010-06-16 16:39
2010-06-16 17:08

2010-06-17 13:28
2010-06-17 14:04
程序代码:#include<iostream>
using namespace std;
#define pi 3.14
int main()
{
float r;
cout<<"请输入圆的半径:";
cin>>r;
cout<<"圆的周长是:"<<2*pi*r<<endl;
cout<<"圆的面积是:"<<pi*r*r<<endl;
return 0;
}
就是5楼说的,你的L写错了,写成1了,改过来就OK了,我也用的VC++6.0,要是还是错的话,是不是你的编译器有毛病,或者你的系统问题。
2010-06-17 15:00
2010-06-18 09:41
2010-06-18 10:15
2010-06-18 10:17