Look at the following snippet:

while (running = 1) {
In C/C++ the operator= is the assignment operator, and operator== is the comparison operator. When you use the assignment operator in your...