作者Homeparty (su)
看板C_and_CPP
标题[问题] 传回副程式的值
时间Tue Mar 17 18:02:31 2009
小弟目前编写一个副程式
程式为
if (time>1e-10)
for(x_coor=1e-7;x_coor<1e-6;x_coor=x_coor+1e-7)
heatflux=x_coor*1e11*1e6;
if (time>7e-10)
heatflux = 0.;
return heatflux;
x_coor为座标
目前遇到一个问题
回传heatflux出现的是,for最终计算出来的值,也就是1e-6
但小弟的目的是传回一串 heatflux的值 从1e-7到1e-6
请问版上强者 如何解决
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.118.198.85
1F:推 gotoo:传回阵列的指标 03/17 18:30