检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]郑州大学土木工程学院,河南郑州450002 [2]郑州大学水利与环境学院,河南郑州450002
出 处:《计算机工程与设计》2010年第9期2101-2104,共4页Computer Engineering and Design
基 金:河南省教育厅自然科学研究计划基金项目(2009A610014)
摘 要:为使Fortran与VB混合计算工程中的接口容纳更丰富的数据类型,研究了以内建类型为载体的字符串数据的传递。通过协调两种语言在字符串表达、存储及参数传递方面的不同,成功实施了单一字符串的传递。根据CVF字符串型函数调用机制,提出了VB调用Fortran字符串型函数的变通手段。基于对VB安全数组参数的本质认识,并通过挖掘CVF语言扩展功能,解决了字符串数组的传递。通过对Fortran 90派生类型存储结构及VB字符串成员编码的剖析,给出了含字符串派生类型数组的传递方式。结合实例验证了各种传递方法的可行性。To make an interface contain richer data types in Fortran/VB mixed-language programming computation engineering, it is researched to pass string data by built-in types. By coordinating differences in string representation, storage and argument passing for the two languages, single string is successfully passed. According to string function calling mechanism of CVF, an alternative approach is proposed to call Fortran string functions with VB. Based on the recognition of VB array argument belonging to SafeArray, plus taking full advantage of CVF language extension, it is solved to pass string arrays. By parsing the storage structure of Fortran 90 derived types and the coding of VB string components, the way to pass embedded-string derived type arrays is presented. The feasibility of abovementioned passing methods is demonstrated by demo programming.
关 键 词:混合计算工程 接口 内建类型 字符串数据 安全数组 语言扩展 派生类型或自定义类型
分 类 号:TP311[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:18.221.161.189