func.h

来自「C语言表达式语法分析器」· C头文件 代码 · 共 64 行

H
64
字号
#include <time.h>
struct init
{
char const *fname;
func_t fnct;
};

struct init0
{
char const *fname;
func_t0 fnct;
};

struct init2
{
char const *fname;
func_t2 fnct;
};
struct init_time
{
	char const *fname;
	func_t_time fnct;
};

struct init const arith_fncts[]=
{
	"sin",sin,
	"cos",cos,
	"tan",tan,
	"cosh",cosh,
	"sinh",sinh,
	"tanh",tanh,
	"asin",asin,
	"acos",acos,
	"atan",atan,
	"ln",log,
	"exp",exp,
	"sqrt",sqrt,
	"fabs",fabs,
	"round",round,
	"exp",exp,
	"exp2",exp2,
	"log",log,
	0,0
};
struct init2 const arith2_fncts[]=
{
	"fmod",fmod,
	"pow",pow,
	0,0
		
};
struct init0 const arith0_fncts[]=
{
		"rand",rand,
	0,0
};
struct init_time const arith_time_fncts[]=
{
	"time",time,
	0,0
};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?