We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://oi-wiki.org/lang/class/
给出重载运算符的例子中向量内积的代码错误 向量内积是x1x2+y1y2, 所以应该写成 return x * other.x + y * other.y;
The text was updated successfully, but these errors were encountered:
感谢你对 OI Wiki 的关注!记得在 Issue 中表达清楚自己的意思哦~
Sorry, something went wrong.
fix(lang/class.md): 修复求向量内积的代码错误 (#4338) (#4339)
42fbc9d
Successfully merging a pull request may close this issue.
请选择:
我正在访问这个页面
https://oi-wiki.org/lang/class/
我发现页面有这样的问题
给出重载运算符的例子中向量内积的代码错误
向量内积是x1x2+y1y2,
所以应该写成
return x * other.x + y * other.y;
The text was updated successfully, but these errors were encountered: