Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include <iostream>
  2. #include <iostream>
  3. #include <stdio.h>
  4. #include <stdlib.h>
  5. #include <string.h>
  6.  
  7. void main()
  8. {
  9. const std::string abc = "hello";
  10.  
  11. if (abc.c_str() == "hello")
  12. {
  13. cout << "nYES";
  14. }
  15. else
  16. {
  17. cout << "NO";
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement