L1-011. A-B(set的使用)

本题要求你计算A-B。不过麻烦的是,A和B都是字符串 —— 即从字符串A中把字符串B所包含的字符全删掉,剩下的字符组成的就是字符串A-B。


    #include 
#include
using namespace std;

int main()
{
    string s,a;
   // while(true){
        getline(cin,s);
        getline(cin,a);
        set temp;
        for (int i=0;i

注意事项

1.set的使用

你可能感兴趣的:(L1-011. A-B(set的使用))