如果您始终希望循环至少执行一次。这并不常见,但我确实会不时使用它。您可能想使用它的一种情况是尝试访问可能需要重试的资源,例如
do{ try to access resource... put up message box with retry option} while (user says retry);
如果您始终希望循环至少执行一次。这并不常见,但我确实会不时使用它。您可能想使用它的一种情况是尝试访问可能需要重试的资源,例如
do{ try to access resource... put up message box with retry option} while (user says retry);