This program is not displaying the time in the correct area
on the DOS screen. I tried it in so many ways without success.
Please help.
Thank you.
Environment: Desktop OS: Win 2K

Here are my codes and the result that I got:

#include <iostream>
#include <time.h>
#include <string.h>
using namespace std;

// this is a good test for displaying time on the pc
// but the time is displayed at the wrong place

void Time(void);

main()
{
Time();
return 0;
}
void Time()
{
time_t now;
now = time(NULL);
cout << ctime(&now);
}
Result displayed on the screen: Sun Jan 27 06:33:51 2002
Time is in the wrong place, time should be after "2002".
Let me know if I am wrong on this.