I'm just learning C++. What is the difference between these two loops and can anyone show an example of what loop to use when?