Unique Emails -------- C++ EASY TO UNDERSTAND SOLUTION
\nclass Solution {\npublic:\n    int numUniqueEmails(vector<string>& emails) {\n        \n        set<string>st ;\n        vector<string>::iterator it ;\n      
```\nclass Solution {\npublic:\n    int numUniqueEmails(vector<string>& emails) {\n        \n        set<string>st ;\n        vector<string>::iterator it ;\n        \n       // for( it = emails.begin() ; it != emails.end() ; it++ )\n        \n        for( auto& I : emails )\n        {\n            int n = I.length() ;\n            string tmp = "" ;\n            int TC = 100 ;\n            for(int i=0;i<n;i++)\n            {\n                if( I[i] == \'+\' )\n                {\n                    while( I[i] != \'@\' )\n                        i++ ;\n                    TC = i ;\n                }\n                else if( I[i] == \'@\' )\n                    TC = i ;\n                //cout<<i<<"  "<<TC<<endl;\n                if( I[i] == \'.\' && i < TC )\n                    continue ;\n                tmp+=I[i] ;\n                \n            }\n            cout<<tmp<<endl ;\n            if(!st.count(tmp))\n                st.insert(tmp) ;\n            \n        }\n        \n        \n        return st.size() ;\n        \n    }\n};\n```
['C', 'Ordered Set']