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

📄 11-02-02.cpp

📁 more efftive 代码
💻 CPP
字号:
#include <iostream>#include <cstring>#include <algorithm>using namespace std;int main(){  char* s = "executable.exe";  char* suffix = "exe";    const int N = strlen(s);  const int N_suf = strlen(suffix);    char* location = find_end(s, s + N, suffix,                            suffix + N_suf);    if (location != s + N) {    cout << "Found a match for " << suffix << " within " << s         << endl;    cout << s << endl;        int i;    for (i = 0; i < (location - s); ++i)      cout << ' ';    for (i = 0; i < N_suf; ++i)      cout << '^';    cout << endl;  }  else    cout << "No match for " << suffix << " within " << s << endl;}

⌨️ 快捷键说明

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