Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 55 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. std::cin input not the same as direct assign std::string variable
  2. std::string my_input;
  3. std::cin >> my_input;
  4.    
  5. std::string my_input;
  6. my_input = "89001c110704918484dcdcdc85df9b9d8a2310005c08dccad8d7cccec3df824555a6dfced8df0045550";
  7.    
  8. std::string my_input;
  9. std::getline(std::cin, my_input);
  10.    
  11. std::string my_input;
  12. std::getline(std::cin, my_input);
  13.    
  14. std::string direct_assign;
  15. local = "89001c110704918484dcdcdc85df9b9d8a2310005c08dccad8d7cccec3df824555a6dfced8df0045550";
  16.  
  17. std::string input;
  18. std::cin >> input;
  19.  
  20. std::cout << (direct_assign == input) << std::endl;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top