Pipe and Fork

I have an assignment but i keep running into a wall. I have been researching pipe and fork but nothing is helping.

Assignment:
Write a C++ program that will create two pipes and then fork. The child process should read records from a data file (format: op number number) where op is +, -, *, or / and number is an integer number. The child process should pass the record to the parent process. The parent process should sperate the record into items, perform the op on the numbers, print the result on the screen and into an out file.

What are you having difficulty with?
Topic archived. No new replies allowed.