找回密码
 注册
Simdroid-非首页
查看: 95|回复: 1

[积分贴存推荐] 关于type cast.vi

[复制链接]
发表于 2005-3-21 09:34:29 | 显示全部楼层 |阅读模式 来自 辽宁沈阳
各位大仙请问type cast.vi有什么用,一般用在什么地方。谢谢!
发表于 2005-3-21 10:16:15 | 显示全部楼层 来自 日本

Re:关于type cast.vi

Simdroid开发平台
type cast 类型转换
·比如整型 (int) 到字符串 (string)就是一种类型转换,但是一般的类型转换都有专用的节点包,比如 Functions -> String -> Conversion 下的字符串转换。
·我个人认为 type cast 主要是用于 variant 和其他类型的转换。
Variant (和其他高级语言中的泛型类似),它可以代表任何类型,因为它把数据和类型描述信息分开。看看 NI 官方的表述:
A "Variant" is essentially a universal data type. It can contain any kind of information internally (i.e., it can represent any data type), along with some information about what data type the information belongs to; it is a general purpose, package data type. Think of a Variant as something that can represent every possible data type, but it separates the data itself the type information into individual pieces of the "package".

评分

1

查看全部评分

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-5-30 01:10 , Processed in 0.039618 second(s), 19 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表