Basic Pattern Question In Cpp