方法一:while(true){......; break;} 不过我想这个并不是你想要的。
方法二:通过开关变量:
int i = 1;while(true){ if(i) { AfxMessageBox(_T(“这句话只运行一次”)); i=0; }}