Code won’t continue if i use 2 as the input
If i input number 2 for std::cin >> menu;, the code after std::cin >> menu; won’t execute.
At first, i think the problem is in the function, but the code haven’t even go to the switch (i have debugged it with std::cout in the switch and after std::cin >> menu;).