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

  • 關於本站
  • 免責聲明