double x
{
....
return **
}
函数声明时,只用double sqrt()
函数调用时,一般是x2=sqrt(x)
函数调用时,一般是x2 = sqrt(x)
函数定义double sqrt (x)
函数定义double sqrt( x )
函数定义double sqrt( x2 )
函数定义double sqrt( _x )
函数定义double sqrt( x_ )
函数定义double sqrt( x_y )
函数定义double sqrt( _x, y )
函数定义double sqrt( xy )
函数定义double sqrt( xy )
你的函数都有形参的么
egrep -in '[[:alpha:]]+[[:space:]]+sqrt[[:space:]]*\([[:space:]]*.*[[:alpha:]]+.*[[:space:]]*\)'
考虑了以上几种情形,包括制表符,都符合条件,你看还有什么情形遗漏,可以自行补充一下,共匹配10个结果
引用 头文件 #include <math.h>const double pi=3.41592654
再写上double tt= sin(pi/6)
sin(30°)在C语言中的表示为 sin(30*3.1415926/180)