Before complaining, try fixing the problem – things go wrong all the time, and the easiest thing to do (other than ignoring them) is to complain. Perhaps the point of complaining is to build sympathy and support for getting to a fix, but I find most people complain about something that could easily be fixed. Have a head-ache? Take some aspirin. Nothing good to eat? Go to the grocery store. Tired? Take a nap. Before you complain to those around you, ask yourself if you can just fix the problem. People will appreciate being around someone who isn’t always pointing out problems and instead seems to have “things always go their way.”
Also, most people don’t care about your problems, they have their own that they’re trying to fix.