>>65
こんなんでいいですか((;ω;))

#include <stdio.h>
#include <time.h>

Class CMyTime
{
cher str[32];
public:
CMyTime() { this->get(); }
void out() { printf("%s\n", str); }
void get()
{
time_t t = time(0);
struct tm* ptm = localtime(&t);
struct(str, 30, "%Y/%m/%d %H:%M:%S", ptm);
}
};