There is such a code
I just can not understand what the problem is. Tried to make a cycle of dialogue with the user, when selecting item 1 - nothing, with 2 - an eternal cycle. Vinyl internal functions, but they are tested, 100% operational. What could be the problem?
void text::user_iteration() { int x; for( ;; ) { std::cout << "--Menu--\n" << "Push the number to choose the option.\n" << "1. Add a string or few strings.\n" << "2. Check current text.\n" << "3. Exit.\n"; if( std::cin >> x ) { if( x == 1 ) { std::cout << "Enter your text please: \n"; text::add_string(); continue; } if( x == 2 ) { std::cout << "The current text is: \n"; text::output_text(); continue; } if( x == 3 ) { break; } } } }