《C++ Primer》阅读笔记(五)语句

第5章 语句 简单语句(Simple Statements) 如果在程序的某个地方,语法上需要一条语句但是逻辑上不需要,则应该使用空语句(null statement)。空语句中只含有一个单独的分号;。 // read until we hit end-of-file or find an input equal to sought while (cin >> s && s != sought)
相关文章
相关标签/搜索