14 lines
217 B
C++
14 lines
217 B
C++
|
#include <cstdlib>
|
||
|
#include <iostream>
|
||
|
|
||
|
void print_prog(char *prog_name)
|
||
|
{
|
||
|
std::cout << "Program name: " << prog_name << std::endl;
|
||
|
}
|
||
|
|
||
|
int main(int argc, char *argv[])
|
||
|
{
|
||
|
print_prog(argv[0]);
|
||
|
return EXIT_SUCCESS;
|
||
|
}
|