代码搜索:Math
找到约 10,000 项符合「Math」的源代码
代码结果 10,000
www.eeworm.com/read/236837/13997417
c show_cos.c
#include
#include
void main (void)
{
printf("cosine of pi/2 is %6.4f\n", cos(3.14159/2.0));
printf("cosine of pi is %6.4f\n", cos(3.14159));
}
www.eeworm.com/read/236649/14006256
c io20_9.06.c
// #include
// #include
// #include
#include
#include
#include
/**
** note: must include the C standard math library
**
www.eeworm.com/read/134087/14008876
c sine.c
/* sine.c - sine wavetable of length D */
#include
double sine(D, i)
int D, i;
{
double pi = 4 * atan(1.0);
return sin(2 * pi * i / D);
}
www.eeworm.com/read/134087/14009036
c sine1.c
/* sine.c - sine wavetable of length D */
#include
double sine(D, i)
int D, i;
{
double pi = 4 * atan(1.0);
return sin(2 * pi * i / D);
}
www.eeworm.com/read/133753/14026887
cpp stru_stru01.cpp
//stru_stru01.cpp
#include //cin,cout
#include //random()
#include //getch()
struct base
{ char seat[3];
char name[10];
};
struct rec
{ base
www.eeworm.com/read/133753/14026896
cpp stru_ar04.cpp
//stru_ar04.cpp 指向已存在的结构数组
#include //cout,cin
#include //setw()
#include //getch()
const int N=5;
struct rec
{ char seat[3]; //增加座号
i
www.eeworm.com/read/133753/14026901
cpp stru_01.cpp
//stru_01.cpp
#include
#include
struct rec
{ int chi,eng,math,total;
float ave;
};
void main()
{ rec Bill;
Bill.chi=90; //直接设置分数;
Bill.eng=80;
Bill.math=
www.eeworm.com/read/133753/14026903
cpp stru_ar01.cpp
//stru_ar01.cpp
#include //cout,cin
#include //setw()
#include //getch()
const int N=5;
struct rec
{ int chi,eng,math,total;
float ave;
};
void main()
www.eeworm.com/read/133753/14026904
cpp stru_03.cpp
//stru_03.cpp
#include
#include
struct rec
{ int chi,eng,math,total;
float ave;
}Bill={90,80,87,0,0}; //直接定义变量及字段常数
void main()
{ Bill.total=Bill.chi+Bill.eng+Bil
www.eeworm.com/read/133753/14026908
cpp stru_ptr01.cpp
//stru_ptr01.cpp
#include //cout,cin
#include //random()
#include //getch()
struct rec
{ int chi,eng,math,total;
float ave;
};
void main()
{ rec *Bil