帮忙把下面个c函数转成c#的
const int num=100
float neiji(float [num]b, float [num]c)
{
int p;
float nj = 0;
for (p = 1; p < num; p++) nj += c[p] * b[p];
return nj;
}
C# code:
const int num=100
public float neiji(float[] b, float[] c)
{
float nj = 0;
for (int p = 1; p < b.Length; p++) nj += c[p] * b[p];
return nj;
}
呃,这样的话b.length是不是等于100哟?
const int num=100;
private float neiji( float []b, float []c)
{
int p;
float nj = 0;
for (p = 1; p < num; p++)
&nbs
相关问答:
在查询后将查询出来的值赋给各输入框
<c:if test="${not empty dataValue}">
fm.SAMPLING_DATE.value=" <c:out value='${dataValue.SAMPLING_DATE}'/ ......
散分,为C/C++论坛增加点人气!!
jf
jf,楼下保持队形
只见过不敢散分的,没见过不敢接分的
接
前排留名
jf
这里人气还不错啊!
接分 …… C/C++好热闹额……其他版块就相对没这么热了
......
你还在新手阶段徘徊吗?你还在发愁应该怎么继续学习C和C++吗?
群 29152388 为你解开疑惑,欢迎新手老手的加入,你的加入就是其它人学习的动力
楼下出门踩便便
算你狠
新手的福音啊···终于 ......