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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
对于练习6.50中,f(42) 的最佳匹配为 f(int), 但可行函数应该包含两个吧,f(int) 和 f(double, double=3.14) 。
f(int)
f(double, double=3.14)
如下程序所示
#include <iostream> using namespace std; void f(double x, double y=3.14) { cout << "double x, double y=3.14" << endl; } int main() { f(42); }
运行结果如图所示:
The text was updated successfully, but these errors were encountered:
cout << "double "<< x <<", double y="<< y << endl;
Sorry, something went wrong.
No branches or pull requests
对于练习6.50中,f(42) 的最佳匹配为
f(int)
, 但可行函数应该包含两个吧,f(int)
和f(double, double=3.14)
。如下程序所示
运行结果如图所示:
The text was updated successfully, but these errors were encountered: