Usa sempre la std::getline.
Gli operatori >> di std::cin sono qualcosa di osceno.codice:void keyb_set(std::string &str){ std::getline(std::cin,str); if (str == "exit" or str == "EXIT") { exit(0); } }![]()
Usa sempre la std::getline.
Gli operatori >> di std::cin sono qualcosa di osceno.codice:void keyb_set(std::string &str){ std::getline(std::cin,str); if (str == "exit" or str == "EXIT") { exit(0); } }![]()
This code and information is provided "as is" without warranty of any kind, either expressed
or implied, including but not limited to the implied warranties of merchantability and/or
fitness for a particular purpose.