int Gstatic = 0; int main ( void ) { while ( 1 ) //遵循1 { //... if ( 1 == Gstatic ) { break; } } return ( 0 ); }