Hello all, i'm new to C++. I'm struggling to run this simple program..
I created a file called source.cpp that the code below. I have no other files in the same project..
Spec: Windows vista, Visual c++ 2008 compiler, 32bits
#include <iostream.h>
#include <time.h>
void main() {
char sdate[9];
char stime[9];
_strdate( sdate );
_strtime( stime );
cout << "time: " << stime << " date: " << sdate;
//cout << "Hi ";
return 0;
}
1>time - 1 error(s), 0 warning(s)