1.迭代器 2.C++11 新增关键字auto 3.数组遍历法 4.基于范围的for循环 demo示例 C++ vector遍历demo,多种姿势任你选~ 1.迭代器 for ( vector <int> :: iterator it = obj . begin (); it != obj . end (); it ...
字符串中第一个仅出现一次的字母 一、模拟策略 二、字符处理 三、枚举 判断回文 字符串中第一个仅出现一次的字母 #include < bits / stdc ++. h > using namespace std ; int main (){ int t [ 256 ]; string s ; ...