I would say you have popped the reg. Take it out of the board and see if there is still current flowing. If so, look closely at your board layout.
Also, as your capacitor was in reversed, it may be damaged too although if it was swapped quick enough they often do survive.
When you say you fixed the reg, did you just turn it around or cross over a couple of pins to get it correctly wired?
An easy way is to bend the input pin up, then solder the remaining 2 pins into the board but one hole to the right, and than run a wire from the pcb input pad to the bent up pin.
When I do a pcb design for a reg, it has 4 pads, not 3. Then as it is In, Adj, Out, In, either pinout can be used. A handy trick to remember.
Im at a loss....???So i swapped the reg and also the cap and still it outputs 0v and 1.8A.
So must be a fault in the circuit design...????










