Unlimited list c++ example