The programs here quickly demonstrate how to use named pipes in C++. Simply run:
$ make allthen fire up 2 xterms and run the following command in the first xterm:
$ ./simpleOutPipeand the following command in the second xterm:
$ ./simpleInPipeYou can get more information about these programs from my blog.