This commit is contained in:
Sebastian Messmer 2018-08-07 18:04:32 -07:00
parent acff0e5c39
commit 6f175e0b9b
1 changed files with 2 additions and 1 deletions

View File

@ -1,11 +1,12 @@
// This is a small executable that prints its first argument and exits with the exit status in its second argument
#include <iostream>
#include <cstdlib>
int main(int argc, char* argv[]) {
if (argc != 3) {
std::cerr << "Wrong number of arguments" << std::endl;
abort();
std::abort();
}
std::cout << argv[1];