2020年9月3日

摘要: set nu // 显示所有行号 阅读全文
posted @ 2020-09-03 15:54 忠诚的卫士 阅读(822) 评论(0) 推荐(0) 编辑

2020年8月21日

摘要: 编辑:/etc/network/interfaces # interfaces(5) file used by ifup(8) and ifdown(8)auto loiface lo inet loopbackauto enp1s0iface enp1s0 inet staticaddress 1 阅读全文
posted @ 2020-08-21 15:37 忠诚的卫士 阅读(166) 评论(0) 推荐(0) 编辑

2019年6月4日

摘要: 写入后的文件数据: 打印信息: 阅读全文
posted @ 2019-06-04 22:06 忠诚的卫士 阅读(1499) 评论(0) 推荐(0) 编辑

2019年4月2日

摘要: 1、Linux下的离线安装 这里给出编译好的lua库及离线安装时必须的其他库。 链接:https://pan.baidu.com/s/1rNJH8DWq2YBYLCo8IiFJCw 提取码:q3g7 里面包含三个文件和一个安装步骤说明,按照步骤可完成Lua库的安装。 2、C 语言调用Lua函数 li 阅读全文
posted @ 2019-04-02 13:41 忠诚的卫士 阅读(409) 评论(0) 推荐(0) 编辑

2019年3月18日

摘要: 1、ubuntu需要安装 cmake; 2、下载osg库文件, 链接:https://pan.baidu.com/s/1lAphCcad5uqF5npI2IjBFg 提取码:beh9 3、下载osg data文件, 链接:https://pan.baidu.com/s/1iWouYYS_CRlOXU 阅读全文
posted @ 2019-03-18 20:35 忠诚的卫士 阅读(1105) 评论(1) 推荐(0) 编辑

2019年1月30日

摘要: 函数原型:int snprintf(char* dest_str,size_t size,const char* format,...); 所需头文件:#include<stdio.h> 函数功能:先将可变参数 “…” 按照format的格式格式化为字符串,然后再将其拷贝至dest_str中。 注意 阅读全文
posted @ 2019-01-30 17:33 忠诚的卫士 阅读(483) 评论(0) 推荐(0) 编辑

2018年12月22日

摘要: 1、编写函数求一系列值的平均数,参数数目不确定: 输出结果为: 阅读全文
posted @ 2018-12-22 11:34 忠诚的卫士 阅读(149) 评论(0) 推荐(0) 编辑

2018年12月4日

摘要: 头文件 源文件 结果: 阅读全文
posted @ 2018-12-04 10:09 忠诚的卫士 阅读(365) 评论(0) 推荐(0) 编辑

2018年11月16日

摘要: 结果: 结果为: 对于例子二这种有多个非线性约束的情况,也可以采用多非线性函数: 结果为: 结果为: 阅读全文
posted @ 2018-11-16 10:07 忠诚的卫士 阅读(5386) 评论(0) 推荐(0) 编辑

2018年11月8日

摘要: 注意这里是求最大值,目标函数需要取反; 阅读全文
posted @ 2018-11-08 20:50 忠诚的卫士 阅读(1752) 评论(0) 推荐(1) 编辑

导航