给个最直观的例子
#include <iostream>
#include <string>
using namespace std;
void OutPut(string & Stri)
{
cout<<"NUM.1"<<endl;
cout<<Stri<<endl;
}
void OutPut(const string & Stri)
{
cout<<"NUM.2"<<endl;
cout<<Stri<<endl;
}
int main()
{
OutPut("HELLO WORD!");
return 0;
}