All pastes #948933 Raw Edit

Unnamed

public text v1 · immutable
·published 2008-03-19 14:58 UTC
rendered paste body
#include "boost/date_time/gregorian/gregorian.hpp"
#include "boost/date_time/date_facet.hpp"
#include <iostream>
#include <sstream>

const std::wstring full_months[]={L"January",L"February",L"March",
                                  L"April",L"May",L"June",
                                  L"July",L"August",L"September",
                                  L"October",L"November",L"December"};
int main() {
    for(int i = 0; i < 12; ++i) {
	boost::gregorian::greg_month m(1);
	std::wcout<< full_months[i] << " TO " <<m << std::endl;
	i=i+1;
    }
}