关于M_PI/2的问题
#include <stdio.h>#include <math.h>
int main() {
printf("%f\n", sin('M_PI'/2));
return 0;
}
sin('M_PI'/2))我试过很多次了 一直没办法输出1,很奇怪,包括改成sin(M_PI_2) ''这两个符号不能去掉 一去掉就报错 我用得是clion 2016.1.1版本 谁能帮我看下吗 我实在想不出来你 百度也找不到
[此贴子已经被作者于2016-4-6 15:09编辑过]