Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- std::cin input not the same as direct assign std::string variable
- std::string my_input;
- std::cin >> my_input;
- std::string my_input;
- my_input = "89001c110704918484dcdcdc85df9b9d8a2310005c08dccad8d7cccec3df824555a6dfced8df0045550";
- std::string my_input;
- std::getline(std::cin, my_input);
- std::string my_input;
- std::getline(std::cin, my_input);
- std::string direct_assign;
- local = "89001c110704918484dcdcdc85df9b9d8a2310005c08dccad8d7cccec3df824555a6dfced8df0045550";
- std::string input;
- std::cin >> input;
- std::cout << (direct_assign == input) << std::endl;
Add Comment
Please, Sign In to add comment