You’re not flushing your output.
std::cout << "||" << std::flush;
More Related Contents:
- What is the most efficient C++ method to split a string based on a particular delimiter similar to split method in python? [closed]
- Compilation error: expected constructor, destructor, or type conversion before ‘;’ token [closed]
- How do I take values from text file and input into a 2D array? c++
- C/C++ maximum stack size of program on mainstream OSes
- const vs constexpr on variables
- How to Calculate Execution Time of a Code Snippet in C++
- OpenCV with Network Cameras
- Embed Text File in a Resource in a native Windows Application
- How can I easily format my data table in C++?
- Binary literals?
- Difference between shared objects (.so), static libraries (.a), and DLL’s (.so)?
- vector::size_type in C++
- Fixing Segmentation faults in C++
- Narrowing conversions in C++0x. Is it just me, or does this sound like a breaking change?
- .c vs .cc vs. .cpp vs .hpp vs .h vs .cxx [duplicate]
- Equivalent C++ to Python generator pattern
- When is a function try block useful?
- How to trim an std::string?
- How to get a list of video capture devices (web cameras) on windows? (C++)
- Compile time sizeof_array without using a macro
- c++ Read/Write class from/to binary file
- Is make_shared really more efficient than new?
- Erasing while iterating an std::list
- Qmake: how to remove compiler flag for a certain project, without changing qmake.conf?
- Why use #ifndef CLASS_H and #define CLASS_H in .h file but not in .cpp?
- Long Vs. Int C/C++ – What’s The Point?
- Observable behavior and undefined behavior — What happens if I don’t call a destructor?
- How to combine std::bind(), variadic templates, and perfect forwarding?
- Variable Sized Struct C++
- What is a reference-to-pointer?