fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void hoge(char* fuga){
  5. cout << "1引数: " << "" << fuga << endl;
  6. }
  7. void hoge(char* fuga, char* piyo){
  8. cout << "2引数: " << fuga << " " << piyo << endl;
  9. }
  10.  
  11.  
  12. int main() {;
  13. hoge("",""); // ←これはどっちが実行されると期待してるんだ?
  14. return 0;
  15. }
Success #stdin #stdout 0s 3140KB
stdin
Standard input is empty
stdout
2引数: