f0612.cpp
资源名称:c.rar [点击查看]
上传用户:puke2000
上传日期:2022-07-25
资源大小:912k
文件大小:0k
源码类别:
C#编程
开发平台:
Visual C++
- //==================================
- // f0612.cpp
- // 判断字串相等版本一
- //==================================
- #include<iostream>
- #include<fstream>
- #include<algorithm>
- using namespace std;
- //----------------------------------
- int main(){
- ifstream in("string.txt");
- for(string s,t; in>>s>>t; ){
- sort(s.begin(), s.end());
- sort(t.begin(), t.end());
- cout<<(s==t ? "yesn" : "non");
- }
- }//=================================