string aux;
int maxy,auxx=0;
cin>>aux;
maxy= (int)sqrt(aux.size());
我在歌厅:C++编译器错误:不明确调用重载函数
1> error C2668: 'sqrt' : ambiguous call to overloaded function
1> could be 'long double sqrt(long double)'
1> or 'float sqrt(float)'
1> or 'double sqrt(double)'
为什么?
“一个无与伦比的左括号创建一个尚未解决的紧张,所有的日子会陪着你” http://xkcd.com/859/这就是为什么我喜欢C-风格转换的像这样的案例 - 他们生产的嵌套层次少。 – AnT 2011-06-03 22:13:53
:-)谢谢!固定。 – templatetypedef 2011-06-03 22:14:21