📄 exe56.cpp
字号:
// Programming with C++, Second Edition, by John R. Hubbard
// Copyright McGraw-Hill, 2000
// Example E.56 on page 391
// Testing the set_difference() algorithm
#include <algorithm>
#include <iostream>
using namespace std;
int main()
{ char* p="ABCDEFGHIJ";
char* pp="AEIOUXYZ";
char ppp[16];
char* qqq = set_difference(p,p+10,pp,pp+8,ppp);
cout << p << '\n';
cout << pp << '\n';
*qqq = 0; // terminates the ppp string
cout << ppp << '\n';
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -