摘要: 如果选了Host-only,那么虚拟机与跑虚拟机的宿主就无法连通了。可以选用Bridged模式,那么虚拟机与跑虚拟机的主机连通了 阅读全文
posted @ 2013-09-23 16:23 KingOfFreedom 阅读(345) 评论(0) 推荐(1) 编辑
摘要: 1 /* 2 ********************************************************************** 3 4 INPUT3.C -- Input data parser for EPANET; 5 6 VERSION: 2.00 7 DATE: 5/30/00 8 9/7/00 9 10/25/00 10 3/1/01 11 6/24/02 12 8/15/... 阅读全文
posted @ 2013-09-13 17:54 KingOfFreedom 阅读(1675) 评论(0) 推荐(0) 编辑
摘要: 首先介绍下这3个文件的关系:可以说INPUT1.C的函数粒度最大,它的函数getdata()就完成了整个INPUT文件数据的读入,该函数又调用了INPUT2.C中的部分函数,INPUT2.C文件中的函数分为两类,一类是解析INPUT文件的函数;另一类是工具函数,包括将节点、管段数据存入哈希表中,构建哈希索引、字符串的匹配,从哈希表中查找数据等,该文件的粒度中等。而INPUT3.C的粒度是最细的,他是用于解析单行INPUT文件的对象内容并保存到内存中。INPUT3.C的组织结构也很简单,各个函数具有较大的相似性,分别是对INPUT文件中的不同段落数据的处理。 其中INPUT2.C文件中的unl. 阅读全文
posted @ 2013-09-13 17:37 KingOfFreedom 阅读(911) 评论(0) 推荐(0) 编辑
摘要: 引自input2.Cint getfloat(char *s, double *y)/***-----------------------------------------------------------** Input: *s = character string ;输入:字符串** Output: *y = floating point number ;输出:doulbe类型的指针** returns 1 if conversion successful, 0 if not 如果转换成功返回1,否则返回0** Purpose: converts string to floating 阅读全文
posted @ 2013-09-12 09:54 KingOfFreedom 阅读(510) 评论(0) 推荐(0) 编辑
摘要: /*-----------------------------------------------------------------------------** hash.c**** Implementation of a simple Hash Table for string storage & retrieval**** Written by L. Rossman** Last Updated on 6/19/03**** The hash table data structure (HTable) is defined in "hash.h".** Int 阅读全文
posted @ 2013-09-12 09:20 KingOfFreedom 阅读(745) 评论(0) 推荐(0) 编辑
摘要: /***********************************************************************INPUT3.C -- Input data parser for EPANET;VERSION: 2.00DATE: 5/30/00 9/7/00 10/25/00 3/1/01 6/24/02 8/15/07 (2.00.11) 2/14/08 (2.00.12)AUTHOR: L. Rossman US EPA - NRMRLThis module parses data from each line of input from file InF 阅读全文
posted @ 2013-09-11 11:27 KingOfFreedom 阅读(989) 评论(0) 推荐(0) 编辑
摘要: What Epanet cand and cannot doGood news!Epanet can do most of the calculations you may need for your project,andthose that Epanet cannot do are actually pretty easy to do on a piece fo paper,You willuse Epanet mainly for: 》Determining what pipes with which diameters should be used. 》Determining what 阅读全文
posted @ 2013-09-10 17:39 KingOfFreedom 阅读(597) 评论(0) 推荐(0) 编辑
摘要: /************************************************************************* Global Variables for EPANET Program VERSION: 2.00 DATE: 5/8/00 6/24/02 2/14/08 (2.00.12)AUTHOR: L. Rossman US EPA - NRMRL *************************************************************************///该文件定义了EPANET程序中的全局变量。文件的组.. 阅读全文
posted @ 2013-09-10 15:42 KingOfFreedom 阅读(690) 评论(0) 推荐(0) 编辑
摘要: /*************************************************************************** FUNCS.H -- Function Prototypes for EPANET Program VERSION: 2.00DATE: 5/8/00 9/25/00 10/25/00 12/29/00 3/1/01 2/14/08 (2.00.12)AUTHOR: L. Rossman US EPA - NRMRL **************************************************************. 阅读全文
posted @ 2013-09-10 14:12 KingOfFreedom 阅读(402) 评论(0) 推荐(0) 编辑
摘要: /*************************************************************************** FUNCS.H -- Function Prototypes for EPANET Program VERSION: 2.00DATE: 5/8/00 9/25/00 10/25/00 12/29/00 3/1/01 2/14/08 (2.00.12)AUTHOR: L. Rossman US EPA - NRMRL **************************************************************. 阅读全文
posted @ 2013-09-10 11:46 KingOfFreedom 阅读(467) 评论(0) 推荐(0) 编辑