![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C
zhanghucheng1989
这个作者很懒,什么都没留下…
展开
-
fedora上编译运行C文件
#include <stdio.h> int main(void) { float value; value = sin ( 3.14 / 2 ); printf("%f/n",value); } (三角函数里面的 sin(90度角),要注意的是,大多数的程序语言都是使用径度而不是一般我们在计算的『角度』, 180 ...原创 2011-09-28 14:12:10 · 882 阅读 · 0 评论 -
warning: the `gets' function is dangerous and should not be used.
gets()方法在linux下使用gcc编译时会出现下列问题: warning: the `gets' function is dangerous and should not be used. 解决办法是使用 fgets()。 #include <stdio.h> #include <string.h> int main(){ char ...原创 2011-10-27 17:51:42 · 136 阅读 · 1 评论