cplusminus/cpm/cxx/cpm.cxx

15 lines
212 B
C++

#include <iostream>
int main (int argc, char* argv[])
{
using namespace std;
if (argc < 2)
{
cerr << "error: missing name" << endl;
return 1;
}
cout << "Hello, " << argv[1] << '!' << endl;
}