Public feed #532713

Date And Time In C++

public cpp v1 · immutable
Raw Edit
·published 2007-06-03 07:00 UTC
rendered paste body
#include <windows.h>#include <fstream>using std::ofstream; using std::endl;  ofstream fout("Print Something.txt");      SYSTEMTIME timeGMT= {0}; GetLocalTime (&timeGMT);   fout << "Print Something To A File" << timeGMT.wMonth << "/" << timeGMT.wDay << "/" << timeGMT.wYear << " " << timeGMT.wHour << ":" << timeGMT.wMinute << ":" << timeGMT.wSecond << "\n";