hello, I'm almost done it, but I'm lost in the huge forest of c++...
so, here's my code:
#include <iostream>
#include <fstream>
#include <time.h>
#include <stdio.h>
using namespace std;
int gettime()
{
time_t rawtime;
struct tm * timeinfo;
time ( &rawtime );
timeinfo = localtime ( &rawtime );
}
int main () {
ofstream failas;
failas.open ("logas.txt", ios::out | ios::app);
gettime();
failas << asctime (timeinfo) ;
failas.close();
return 0;
}
can anyone say, where I'm wrong? THank you very much :)