循环 for循环 while循环 do while循环 通常,入口条件循环比出口条件循环好,因为循环开始前对条件进行检查 c++11基于范围的for循环 对数组(或容器类,如:vector和array)的每个元素执行相同操作 int a[5]={1,3,4,5,6}: for (int i :a) cout<<i<<endl; //////不断循环把依次打印出来 int a[5]={1,3,4,5,6}: …
<cctype> (ctype.h) Character handling functions This header declares a set of functions to classify and transform individual characters. Functions These functions take the int equivalent of one character as parameter and return an int that can eithe…