⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 12-06-05-3.cpp

📁 more efftive 代码
💻 CPP
字号:
#include <iostream>#include <iterator>#include <functional>#include <algorithm>#include <vector>#include <cctype>using namespace std;inline bool eq_nocase(char c1, char c2) {  return tolower(c1) == tolower(c2);}inline bool lt_nocase(char c1, char c2) {  return tolower(c1) < tolower(c2);}int main(){  const char init[] = "The Standard Template Library";  vector<char> V(init, init + sizeof(init));  sort(V.begin(), V.end(), lt_nocase);  copy(V.begin(), V.end(), ostream_iterator<char>(cout));  cout << endl;  vector<char>::iterator new_end = unique(V.begin(), V.end(), eq_nocase);  copy(V.begin(), new_end, ostream_iterator<char>(cout));  cout << endl;  // 块

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -