VIPPERでもわかるC言語 Part2
■ このスレッドは過去ログ倉庫に格納されています
0073('ω`) ◆YDnNOS/Dos
2005/11/05(土) 22:06:50こんなんでいいですか((;ω;))
#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);
}
};
■ このスレッドは過去ログ倉庫に格納されています