Hello,
im trying to use std::cin or getline in my code but i have some issues like symply when std::cin or getline() is called, the program runs in a void.
there must be things I haven't understood or that I'm not doing correctly, can you help me please?
Ex:
Test(test, cin)
{
std::string command;
while (command != "exit")
{
std::cin >> command; // I write "exit" (without ""). ISSUE -> ctrl + C for leave
std::cout << "result: " << command << std::endl; // line never call
}
}
Thank you
Hello,
im trying to use
std::cinorgetlinein my code but i have some issues like symply whenstd::cinorgetline()is called, the program runs in a void.there must be things I haven't understood or that I'm not doing correctly, can you help me please?
Ex:
Thank you