fork download
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int main() {
  6. char b[] = {'h', 'e', 'l', 'l', 'o', '\0'};
  7. string a;
  8.  
  9. cin >> a;
  10.  
  11. if (a == b){
  12. cout << "Hello to you";
  13. }
  14. return 0;
  15. }
Success #stdin #stdout 0s 3480KB
stdin
hello
stdout
Hello to you