title: C++ - How to format an output string to wrap itself according to the number of columns in the console?
body: <p>How can I wrap a string which I want it to be displayed on console considering the column size of the console. I do not want to use "std::cout" as we do not use it in our project. To be specific, I do not want to modify the stream. Rather I wanted to modify the string itself. Is there any way to do that ? Please help. I should also mention that solution in c++11 might not help me as we do not have support for it in our project.</p>