[ create a new paste ] login | about

Link: http://codepad.org/IE18UaOy    [ raw code | output | fork ]

C++, pasted on Apr 26:
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <ctime>
#include <iostream>
 
int main()
{
    setlocale (LC_ALL, "");
    char buf[100];
    time_t t = time(0);
    
    strftime( buf, sizeof(buf), "%B", localtime( &t ) );
    std::cout << buf << std::endl;
    //system( "pause" );
}


Output:
1
April


Create a new paste based on this one


Comments: