set<string> MyTestContain; MyTestContain=set<string>(S1,S1+6); 和C#不一样的是 没有new关键字,仅此而已! 转载于:https://www.cnblogs.com/gaoxianzhi/p/3242097.html