Im working on this program and the output should be like this whenthe user enters in something.
the output should be like this:
input: line one
pid 5302 outputs: line one
input:line three
pid 5302 outputs: line three
pid 5307 outputs: line three
input: line two
pid 5307 outputs: line two
pid 5302 outputs: line two
pid 5308 outputs: line two
input: terminate
pid 5302 exits
pid 5308 exits
pid 5307 exits
pid 5001 exits
my code doesnt do that, instead the text entered after the first input line is rearranged. Here is my code, thanks.
http://sourcepost.sytes.net/sourcepo...ource_id=22592