logo
  • 教程列表
  • SO官方文档
  • 迭代
    • 打破
    • 继续
    • 做
    • 对于
    • 而
    • 基于范围的循环
  1. StackOverflow 文档
  2. C++ 教程
  3. 迭代
  4. 做

做

Created: November-22, 2018

介绍一个 do-while 循环 。

// Gets the next non-whitespace character from standard input
char read_char() {
    char c;
    do {
        c = getchar();
    } while (isspace(c));
    return c;
}
  • 对于
  • 继续

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明