क्या कोई तरीका है std::setw मैनिपुलेटर (या उसके फ़ंक्शन width) को स्थायी रूप से सेट करने का कोई तरीका है? यह देखो: #include <iostream>
#include <iomanip>
#include <algorithm>
#include <iterator>
मुझे हाल ही में इस तथ्य से काटा गया था कि ios_base::width और/या setw मैनिपुलेटर reset with every item written to the stream होना चाहिए। बल्कि इस से while(whatever)
{
mystream << std::setw(2) <<