新手学C,求大神指点,感激不尽。
c语言吧
全部回复
仅看楼主
level 13
这程序哪错??
# include <stdio.h>
void main()
{
float r ,s , v;
counst float pi = 3.1415926;
printf(“please input r:”);
scanf(“%f”,&r);
s = 4 * pi * r * r;
v = 4.0/3*pi*r*r*r;
printf(“s=%f\n”,s);
}
2013年04月12日 13点04分 1
level 9
counst是什么?
2013年04月12日 13点04分 2
level 1
是const不是counst
2013年04月12日 13点04分 3
谢了,找到原因了
2013年04月12日 14点04分
level 6
直接把pi在开头定义。。。。#define
2013年04月12日 14点04分 4
不明白,怎么做?
2013年04月13日 01点04分
level 13
为什么有的程序编译没有错误,但也运行不了,这是怎么会事?
2013年04月13日 01点04分 5
1