C++ Simple || Easy-understanding
\nclass Solution {\npublic:\n    int countConsistentStrings(string allowed, vector<string>& words) {\n        set<char> set;\n        for(int i=0; i<allowed.siz
```\nclass Solution {\npublic:\n    int countConsistentStrings(string allowed, vector<string>& words) {\n        set<char> set;\n        for(int i=0; i<allowed.size(); i++)\n        {\n            set.insert(allowed[i]);\n        }\n        int cnt = 0;\n        for(int i=0;i<words.size();i++)\n        {\n            bool flag = true;\n            for(int j=0;j<words[i].length(); j++)\n            {\n                if(set.find(words[i][j]) != set.end())  continue;\n                else flag = false;\n            }\n            if(flag == true) cnt++;\n        }\n        return cnt;\n    }\n};\n```
['C']