C++依旧支持goto的,怎么能不支持goto呢?有时候goto真的相当有效率~~

 1 #include <iostream>
 2 using namespace std;
 3 
 4 int main(){
 5     int i = 0;
 6 TAG:i++;
 7     if(i < 10){
 8         goto TAG;
 9     }
10     return 0;
11 }

就这么简单,呵呵!

相关文章: