How can i make my monster which is killed disappear little by little with c++ code

There are so many ways to achieve this effect.

This is one way - Disintegrating Baddies: Dissolve Effects in UE4

You’d be better served by giving more details or an example if possible.