1 2 3 4 5 6 7 8 9 10 11 12
#include <iostream> #define PROJECT_NAME "demo" int main(int argc, char **argv) { if(argc != 1) { std::cout << argv[0] << "takes no arguments.\n"; return 1; } std::cout << "This is project " << PROJECT_NAME << ".\n"; return 0; }