方法1 使用while语句 while(1) { //code } 方法2 使用for语句 for(;;) { //code } 方法3 使用无条件跳转goto语句 loop: //code goto loop; 方法4 使用do-while结构(不太准确) do { }while(1);