[c]指针内存分配失败原因与鉴定方法

摘要: 原因: 1. 未及时释放内存,导致内存被充满 2. win自身缺陷 鉴定方法: 1. 在程序运行过程中,通过任务管理器检查运行内存占用,大小是否超出预期。 阅读全文
posted @ 2019-05-26 15:14 木右州 阅读(293) 评论(0) 推荐(0)

【C】从其他源文件中调用函数

摘要: 目的: 调用其他源文件中的函数,为我所用 方法: 阅读全文
posted @ 2019-02-12 22:18 木右州 阅读(105) 评论(0) 推荐(0)

【C】head file (.h)

摘要: 几个要点: 具体例子: include guard: 导入其他文件夹内的头文件: 阅读全文
posted @ 2019-02-12 22:14 木右州 阅读(372) 评论(0) 推荐(0)

【python】多文件连锁式import注意事项

摘要: 可能的原理: 在a/文件夹内运行ap.py,默认的搜索开始文件夹即为a/,即便进入其他文件夹后继续调用,也要从a/开始书写路径。 文件结构: 文件代码: 重点: 阅读全文
posted @ 2019-02-12 13:06 木右州 阅读(109) 评论(0) 推荐(0)

[swmm]调用存储数据的“结构指针数组”

摘要: 目的: swmm读取.inp文件后,会进行一定计算(如计算conduit.slope)并将信息存储在各个指针变量中,如:TConduit* Conduit等。通过在python中调用该指针,能更快捷的编程。 思路步骤: 具体代码: Swmm5Extend.c Swmm5Extend.h swmm.i 阅读全文
posted @ 2019-02-11 16:12 木右州 阅读(668) 评论(0) 推荐(0)

Ant Colony Operation

摘要: initiate the parameters;%To make the algorithm better, let the number of ant 'n' equal to the number of city 'm'. while in the certain times iteration 阅读全文
posted @ 2018-02-08 09:05 木右州 阅读(123) 评论(0) 推荐(0)

水文相关国家杰出青年(1994~?)

摘要: 阅读全文
posted @ 2018-02-03 21:44 木右州 阅读(133) 评论(0) 推荐(0)

水文相关两院院士(2005~?)

摘要: 中国工程院院士: 中国科学院院士: 阅读全文
posted @ 2018-02-03 20:19 木右州 阅读(341) 评论(0) 推荐(0)