Im working on this program in C++ using the message queue in linux, but for some reason i cannot get these two programs to communicate. The code for the first part is here:

while the second program is here

The part to look at is the do while, it starts on line 40. Thanks