All pastes #948953 Raw Edit

Unnamed

public text v1 · immutable
·published 2008-03-19 15:09 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(i+1);
    std::wcout<< full_months[i] << " TO " << m << std::endl;
  }
}