background image

PHP 中通过 Web 执行 C/C++应用程序

 

  

  

cout << (argc-1 == 1 ? "This" : "These") 

  

<< " arguement" << (argc-1 == 1 ? "" : "s") << " " 

  

<< (argc-1 == 1 ? "is" : "are") << ": " << endl << endl; 

 

  

  

for(int i = 1; i < argc; i++) 

  

cout << "[" << i << "] " << argv[i] << endl; 

 

  

  

return 0; 

  

}