fork download
  1. #include <iostream>
  2. #include <string.h>
  3. using namespace std;
  4.  
  5. int main() {
  6. auto s = "aaa";
  7. auto r = "bbb";
  8. if(strcmp(s,r)) {
  9. cout << "Равны" << endl;
  10. }
  11. if(!strcmp(s,r)) {
  12. cout << "Не равны" << endl;
  13. }
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
Равны