pause the console c++

#include <iostream>

int main() {
    std::cout << "Press Enter to continue...";
    std::cin.get();
    return 0;
}