diff --git a/project_3x3_rubik_solver.cpp b/project_3x3_rubik_solver.cpp index 571e055..08c0df2 100644 --- a/project_3x3_rubik_solver.cpp +++ b/project_3x3_rubik_solver.cpp @@ -156,8 +156,10 @@ int main() void scramble() { // Get the scramble moves from the user + cin.ignore(numeric_limits::max(), '\n'); // Clear any leftover newline cout << "Enter the scramble: "; - string moves; getline(cin, moves); + string moves; + getline(cin, moves); // Parse and apply the moves string move = "";