查看: 1898| 回复: 5
跳转到指定楼层
上一主题 下一主题
收起左侧

[其他] 求助,有关Fluent中的一段代码

全局:

注册一亩三分地论坛,查看更多干货!

您需要 登录 才可以下载或查看附件。没有帐号?注册账号

x
float exa[2][2] = {{1.0,1.0},{1.0,1.0}}; (这段代码是用C#来编的)

这是代码中出错的一句,想把这段代码导入到Fluent总是出现
invalid type conversion: float -> array 2 of float
这样的错误, 希望有经验的朋友能够指点一下

上一篇:本科DA欲申美帝EE PhD求一切信息
下一篇:VLSI 都需要看什么书,选哪些课,用什么软件呢?
🔗
paradox 2012-6-20 06:43:38 | 只看该作者
全局:
the type of exa is wrong. not really familar with C#. but it should be declared as "float[2][2] extra = ..."  

it is different from Java :)
回复

使用道具 举报

🔗
xutopia 2012-6-20 09:48:55 | 只看该作者
全局:
paradox 发表于 2012-6-20 06:43. Waral dи,
the type of exa is wrong. not really familar with C#. but it should be declared as "float[2][2] extr ...

It's the same as java, different from c. And I think you don't even need to specify the dimensions.
回复

使用道具 举报

🔗
paradox 2012-6-20 10:01:34 | 只看该作者
全局:
xutopia 发表于 2012-6-20 09:48 -baidu 1point3acres
It's the same as java, different from c. And I think you don't even need to specify the dimensions ...
. ----
ok!
回复

使用道具 举报

🔗
 楼主| 白开水 2012-6-20 17:58:21 | 只看该作者
全局:
paradox 发表于 2012-6-20 06:43
the type of exa is wrong. not really familar with C#. but it should be declared as "float[2][2] extr ...

很多包括你所说的格式都试过了,都不行。这个格式在编译器里面可以compile,但导入到Fluent总是显示以上错误
回复

使用道具 举报

🔗
shintar 2012-7-18 16:44:43 | 只看该作者
全局:
我感觉你在ME版问更合理一些。。。这里是EE
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

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