alex_bn_lee

导航

上一页 1 ··· 140 141 142 143 144 145 146 147 148 ··· 245 下一页

2019年6月23日 #

【413】C 语言 Command line

摘要: Command-Line Arguments All the executable programs above have a main(void) program more generally, executables take arguments on the command line thes 阅读全文

posted @ 2019-06-23 21:45 McDelfino 阅读(583) 评论(0) 推荐(0)

【412】Linux 系统编译 C 程序

摘要: 1. 直接编译,会自动生成 a.out 文件,此文件即为可执行文件 下面代码可以生成相同用户名的 .o 文件,生成 getchar.o 文件 下面代码可以生成指定名称的 executable,生成 getchar 文件 2. 运行时间计算,使用 time 命令 The time command re 阅读全文

posted @ 2019-06-23 16:02 McDelfino 阅读(435) 评论(0) 推荐(0)

【411】COMP9024 Assignment1 问题汇总

摘要: 1. 构建 Makefile 文件后运行错误,undefined reference to 'sqrt' 实际上是没有链接math数学库,所以要 $gcc test.c –lm //-lm就是链接到math库。 参考:C 语言 undefined reference to 'sqrt' 问题解决 参 阅读全文

posted @ 2019-06-23 14:15 McDelfino 阅读(570) 评论(0) 推荐(0)

【410】Linux 系统 makefile 文件

摘要: makefile 主要是用来合并编译文件 前面就是参数设置,为了后面便与修改 puzzle.c 为主函数 boardADT.c 为 ADT 文件 boardADT.h 为头文件 gcc 参数 -c:Compile and assemble, but do not link. (生成 .o 文件,名字 阅读全文

posted @ 2019-06-23 12:20 McDelfino 阅读(312) 评论(0) 推荐(0)

【409】Linux 系统 Testrun

摘要: 文件名:Testrun 问题一: not found Testrun 解答:Ah got it, it's CRLF again - even sh has trouble reading files with it. Run dos2unix Testrun and then afterwards 阅读全文

posted @ 2019-06-23 12:16 McDelfino 阅读(357) 评论(0) 推荐(0)

上一页 1 ··· 140 141 142 143 144 145 146 147 148 ··· 245 下一页