函数定义double sqrt(x)
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个结果