Finally I try to redirect the data from the first file to the second with:

./send_test.out | ./rcv_test.out

The Terminal prints repeatedly: "Received number: 0", what am I doing wrong?
Also, how can I have to terminal windows for both programs running simultaneously while directing the output from the sender to the receiver?