Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: c++ pipe() questions  (Read 3327 times)

0 Members and 1 Guest are viewing this topic.

Circuit_Girl

    Topic Starter


    Rookie

    c++ pipe() questions
    « on: January 18, 2011, 06:33:25 PM »
    I want write a program that  forks a copy of itself.  The PARENT should ask the user for an integer. The PARENT should send that integer through a pipe to the CHILD. The CHILD should do something with it and send it back through a pipe to the parent. The PARENT should print out the integer.

    I know how to fork but I do not know how to communicate with pipes.  Please help by providing me with a good site to read up on c++ pipes and what the code is to send and receive through pipes in c++.

    Thank you