I get an error on line 19 in this code. The error is "C2228: left of '.tm_sec' must have class/struct/union type"
What's wrong?Code:#include "stdafx.h"
#include <iostream.h>
#include "string.h"
#include "time.h"
int main()
{
tm * x;
int sec;
while (1==1)
{
_getsystime(x);
sec=x.tm_sec;
cout<<sec;
}
return 0;
}
