fork download
  1. #include <iostream>
  2. #include <stdio.h>
  3. #include <string.h>
  4. using namespace std;
  5.  
  6. int main() {
  7. // your code goes here
  8. char *data = "alert1";
  9. if(!strcmp(data,"alert")) // If data == alert
  10. cout << "data is 'alert'";
  11. else
  12. cout << "data is something other than 'alert'";
  13. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
data is something other than 'alert'