1 #include <iostream> 2 3 using namespace std; 4 void hello(int a ,int b=7,char* pszC="*") 5 { 6 cout<<"hello"; 7 } 8 9 int main() 10 { 11 // hello(5); 12 // hello(5,8); 13 hello(6,"#"); //报错 14 //hello(0,0,"#"); 15 return 0; 16 }
时间: 2024-11-07 08:44:04