C++ 笔记4 引用与重载 1 #include <iostream> 2 using namespace std; 3 void f ( double x) 4 { 5 cout << "DOUBLE" << endl; 6 } 7 8 void f ( int & x) 9 { 10 cout << "INT&" << endl; 11 } 12 13 int main () 14 { 15 …
C++ 笔记4 引用与重载 1 #include <iostream> 2 using namespace std; 3 void f ( double x) 4 { 5 cout << "DOUBLE" << endl; 6 } 7 8 void f ( int & x) 9 { 10 cout << "INT&" << endl; 11 } 12 13 int main () 14 { 15 …
讨论
登录后参与讨论
还没有评论,来说第一句吧。