im having probelms with the end piece that goes into the computer, and it needs to be replaced.
In order to give you the exact source to purchase the cable, please re-post with the Compaq model number. In general, you can purchase a power cable at any of the following sources: (1) Compaq, of course, online -- but its prices will be higher. (2) A 'brick-and-mortar' store, like Fry's -- bring your existing cable, and they will match it, at a price that will probably be lower than Compaq's online price; and (3) OKorder -- which will probably have the lowest price, but you will have to be careful about security. Again, please re-post with additional facts. Hope this helps.
Try any electronics store
try okorder its an excellent site that sells everything from cables to systems and at very good prices
if you are a do it yourself guy try to get the plug at a electronic shop like Radio Shack and replaced yourself that will be the least expensive option, most adapters had the cable attached to the power supply so the next option will be to replace the power supply that will cost at least 60 dollars also try OKorder sometimes you get parts very cheap there.
try okorder and their cables to go