I am having an issue where I am assigning rand numbers for an area.
I am supposed to have rand numbers being assigned to a shape for an area. Ex: rectangle (2 numbers), square (2 numbers), circle (1 number), pentagon (1 number), hexagon (1 number). Now I have a canvas that is one of these shapes with one of these numbers. Then I have another shape which is again one of these shapes with one of these numbers. All picked arbitrarily with the random function. Then through implementation it figures out the area and assigns it to a variable. One of canvasArea the other of current which is pieces area.
I am having an issue where they are both the same. Therefore it won't go through my switch statement subtracting the current area from the canvasArea. I included <cstdlib>, I seeded the random number function. I changed to if statements so that way it would print out if the current < canvasArea it would go through the switch, if they were == then to print out they are equal and then also if current > canvasArea. It always prints out == they are equal. Any suggestions?