f0612.cpp
资源名称:c.rar [点击查看]
上传用户:puke2000
上传日期:2022-07-25
资源大小:912k
文件大小:0k
源码类别:

C#编程

开发平台:

Visual C++

  1. //==================================
  2. // f0612.cpp
  3. // 判断字串相等版本一
  4. //==================================
  5. #include<iostream>
  6. #include<fstream>
  7. #include<algorithm>
  8. using namespace std;
  9. //----------------------------------
  10. int main(){
  11.   ifstream in("string.txt");
  12.   for(string s,t; in>>s>>t; ){
  13.     sort(s.begin(), s.end());
  14.     sort(t.begin(), t.end());
  15.     cout<<(s==t ? "yesn" : "non");
  16.   }
  17. }//=================================
  18.