摘要:
求模和求余的总体计算步骤如下:1.求整数商 c = a/b2.计算模或者余数 r = a - c*b求模和求余的第一步不同,求余在取c的值时向0方向舍入;取模在计算c的值时向无穷小方向舍入.C语言实现//取余int rem(int a, int b){ int c = a * 1.0 / b;... 阅读全文
摘要:
学校嵌入式课程实验,本地装的时候遇到了一系列问题,因为基本不会linux所以到处搜解决方法,中间还走了不少弯路,作个笔记.1.解压安装倒是没什么问题,运行时提示找不到共享库logomaker: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory2.使用ldd查看依赖,我的logomaker装在/usr/sbin,所以命令就是ldd /usr/sbin/logomaker | grep 'not found'告诉 阅读全文