6行代码判断邮箱类型

调用string的函数 代码以下web string str = "1584968754@qq.com"; string email_type; size_t res1 = str.find('@'); size_t res2 = str.find('.'); email_type = str.substr(res1+1, res2-res1-1); cout <<"邮箱类型:"<< e
相关文章
相关标签/搜索