摘要: 编译时需要注意,在 Linux 系统下,C 源文件若调用了 math 库里的函数,则编译时要加上 -lm (是字母 l ,不是数字1),表示链接到 math 库。 阅读全文
posted @ 2019-04-29 23:06 clemente 阅读(273) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/LYJ_viviani/article/details/51873961 https://stackoverflow.com/questions/3024197/what-does-int-argc-char-argv-mean g++ main.cc 编 阅读全文
posted @ 2019-04-29 17:48 clemente 阅读(228) 评论(0) 推荐(0) 编辑
摘要: #ifndef, #define, #endif 作用 https://www.cnblogs.com/challenger-vip/p/3386819.html 阅读全文
posted @ 2019-04-29 17:47 clemente 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 当你的程序只有一个源文件时,直接就可以用gcc命令编译它 这样会输出一个main.out https://www.hahack.com/codes/cmake/ 阅读全文
posted @ 2019-04-29 17:44 clemente 阅读(119) 评论(0) 推荐(0) 编辑