I'm trying to create a simple C++ program that uses fork() to create three processes which work together to calculate the square roots of all integers from 1 - 100. Each thread is supposed to read the int, print out its root, and increment it. My problem is I don't know how to get all three processes to share this integer! I tried a pointer, but that didn't help. What can I do?