12345678910111213141516171819
#include <stdio.h>typedef struct tagNewPrint{ char *p1; tagNewPrint(char* a) : p1(a) { } void operator()(char* x) { printf("%s, %s!\n", p1, x); } } NewPrint;int main(){ NewPrint h("Howdy"); NewPrint g("Greetings"); h("world"); g("earthlings"); return 0;}