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
6.18中的a,函数名是只有比较功能。输入的实参可能是右值或者常量引用。应该改成const更合理 (a) bool compare (const matrix &m1, const matrix &m2);
b中我感觉可以用const int i,比 int i更好。不需要更改i的值,传const int &i,效率比传int i更高。 (b)vector::iterator change_val(const int &i, vector::iterator itor);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
6.18中的a,函数名是只有比较功能。输入的实参可能是右值或者常量引用。应该改成const更合理
(a) bool compare (const matrix &m1, const matrix &m2);
b中我感觉可以用const int i,比 int i更好。不需要更改i的值,传const int &i,效率比传int i更高。
(b)vector::iterator change_val(const int &i, vector::iterator itor);
The text was updated successfully, but these errors were encountered: