头文件——math.h里面含sin()函数了。只需在编译预处理行加上“#include”,然后在直接调用sin()函数即可。例:#include#includeint main(){ float x; x=sin(0.19199); cout< return 0;} 你有加上 #include ?