How does c ++ work? Can someone explain it more clearly?