Complaining (or to complain) is a verb.
When you think verb, think: What is going on?
Complaint is the noun form of the same word.
When you think noun, think: person, place or thing.
Verb "Complain" (w/ tenses):
She complained. - past
She complains. - present
She will complain. - future
Noun "Complaint" (a thing)
She wrote out a complaint.