帮忙把下面个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++好热闹额……其他版块就相对没这么热了
......
我现在想将这四个文件从服务器\\10.2.95.88\temp目录下的四个文本文件:1.txt ,2.txt ,3.txt , 4.txt从服务器下载到本地机的C:\temp目录下?
上述的功能我想用纯C应该如何实现?
用ftp协议就可以了
引用 ......
struct s1 {
char ch, *ptr;
union {
short a, b;
unsigned int c:2, d:1;
}
struct s1 *next;
};
主要看不懂符号 :
请达人指点一二
http://blog.cechina.cn/true ......
运行环境是unix,我用ue以ftp方式连到unix上,然后在ue中编写c程序,但在unix下用vi看程序时,每行后面都多了一个^M,这个应该是unix的换行符,每次只能删除一遍然后才能编译,否则会报错,请问这是在ue中字符编码的 ......