I am learning operating system, this is a really big trouble for me, i do not how to write that kind of program above in C++, if anyone know the answer please post complete "code" that write in C++, this is urgent, thank you so much, this is question:
Write a program to communicate between two processes using the pipe as follows:
A process read from the file consists of multiple consecutive sequences, each sequence of the operations +, -, *, / and 2 mathematics
out. For example, the file will save the string like this:
2 + 3
1 to 2
4 * 6
15 / 3
Then the first process of the first sequence send(transmit) data for the second process . the second process
perform calculations and return the resulting string back to the first process to record the
file as follows:
2 + 3 = 5
1-2 = -1
4 * 6 = 24
15 / 3 = 5