[ create a new paste ] login | about

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

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


Output:
1
April


Create a new paste based on this one


Comments: