Do you expect us to do it for you? Also, your example is completely useless for someone who is not wiling to look it up or knows what a perfect number is.
*edit from looking at your previous posts you seem to be trying to take advantage of these forums to pass your classes. If you are not willing to learn or put in any effort you might as well withdrawal from your classes IMHO.
The problem with solving this problem is you are rapidly getting into the realm of higher and higher numbers. And you can not use floating number format because you need all the digits all the way down to the units. These numbers exceed the ability of C++ and many other languages to be held in any of the built in number formats.
So, you must develop your own way of storing them and for performing the various, necessary mathematical operations on them. Routines for addition, subtraction, multiplication, division, square roots, etc. You should do some research on how others have performed this kind of calculation. I would start by looking at how the constant Pi has been calculated to thousands of decimal places.
You may find that C++ is not the best language for this.
Then start iterating from 6 to inf (and avoiding prime numbers). For each number, you sum up it's prime factors and add 1 to the sum, if it equals the number, you print it.