For one thing, you have a lot of places where you probably mean to test for equality (==) but use the assignment operator (=).
Other than that, attempting something like that without arrays doesn't get you far. I have no idea what this code is attempting to do, but it seems that most of it is just redundant.