fork download
  1. #include <string.h>
  2. #include <iostream>
  3. using namespace std;
  4. int main(){
  5. string s,S;
  6. s = "ALI";
  7. S = "ALIM";
  8. cout<<(s>S)<<endl;
  9. cout<<(s<S)<<endl;
  10. cout<<(s=S)<<endl;
  11. }
Success #stdin #stdout 0s 3272KB
stdin
Standard input is empty
stdout
0
1
ALIM