编译后运行提示 This file does not exist, Do you want to build it?
// 千年.cpp : Defines the entry point for the console application.//
#include <stdio.h>
#define PI 3.14159 /*定义符号常量PI的值为3.14159*/
int main(void)
{
float r;
printf("请输入圆的半径: "); /*提示输入圆的半径*/
scanf("%f",&r); /*读取输入的值*/
printf("圆的周长为: %f\n",2*PI*r); /*计算圆的周长并输出*/
printf("圆的面积为: %f\n",PI*r*r); /*计算圆的面积并输出*/
return 0;
}
还是不行,结果一样阿。。。
追答那就奇怪了,我在我这边可以运行,你那边就不能运行,是不是你运行空间开错了
我知道那英文的意思,我点了确定 也还是不行阿,亲。