The best way to help cats who are constipated is by adding a tbsp of canned pumpkin to their next few meals. They will usually eat it. This will have a gentle laxative effect.
If this does NOT work, you will need to see the vet because you have something more serious going on.
Let me know if you need more help.