-
能实行,
c
语言不能显示图像,但是你要懂得如
何用
c
调用
matlab
,过程比较复杂,
这个程序任何参数都可以用,不限制
#include
#include
#include
#include
#include
double
calcN(double fp,double ap, double fs, double as)
{
double i = pow(10,(as/10))
- 1;
double tmp = ap/10;
double j = pow(10,tmp) - 1;
double k = log10((i/j));
double t = log10(fs/fp);
double N = 0.5*k/t + 1;
return N;
};
int main(void)
{
int fp,ap,fs,as;
printf(
请输入
fp:
sc
anf(
printf(
请输入<
/p>
ap:
scanf(
printf(
p>
请输入
fs:
scanf(
printf(
请输入
as:
scanf(
int f = calcN(fp, ap, fs, as);
printf(
char lin[40];
char *str =
lin[0]='0';
char in[4];
itoa(f,in,10);
strcat(lin,str);
strcat(lin,in);
strcat(lin,
///////////////////////////////////////
////////////////////
Engine *ep;
if(!(ep = engOpen(NULL)))
{
-
-
-
-
-
-
-
-
-
上一篇:汽车里程表调表支持车型
下一篇:英语翻译话题词汇:历史文化类(二)