C++中 return f[x]==x ? x : getFather(f[x]); 是什么意思??
注:getFather是本函数的名称, return f[x]==x ? x : getFather(f[x]); 是函数返回。
搜一下三目运算符就行如有帮助,请采纳,谢谢