无限循环和输入特定数字继续操作

do{  

  int c;

  std::cin>>c;

  if(c==1)//输入数字1继续,输入其他数字退出。

    continue;

  else

    break;

}while(1).

原文地址:https://www.cnblogs.com/123qw/p/4371122.html