C++ Primer Answer ch05
摘要:5.1空语句是;在程序的某个地方,语法上需要一条语句但是逻辑上不需要,此时应该使用空语句。5.2块(复合语句)是指用花括号括起来的(可能为空的)语句和声明的序列如果在程序的某个地方,语法上需要一条语句,但是逻辑上需要多条语句,则应该使用复合语句5.3#include using namespace std;int main(){ int sum = 0, val = 1; while(val using namespace std;bool find(int){ return true;}int main(){ /* string s = "132"; st...
阅读全文
posted @ 2013-11-05 15:32
浙公网安备 33010602011771号