摘要: 1. 以上均包含在cctype中 1 #include<cctype> 2 //#include<ctype.h> 2、文件操作 (1)头文件 1 #include<fstream> (2)写文件使用方法 //use ofstream ofstream outFile; //File file? o 阅读全文
posted @ 2020-03-01 22:14 恩赐解脱ゞ 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 1、前缀运算符的优先级是从右到左,例如: 1 *++p; //这句话的含义是先对p进行++,再取* 2、循环 c++11新增了一种循环方式,有点和python类似,如下: 1 array<int, 5> a1 = {...}; 2 3 for(int x : a1) 4 cout << x << e 阅读全文
posted @ 2020-03-01 22:05 恩赐解脱ゞ 阅读(162) 评论(0) 推荐(0) 编辑