Hi
I am new to c++. I tried to get current date but when I compile the program, it gives me an error. This is my program
#include <iostream>
#include <ctime>
#include <stdio.h>
int main ()
{
char sdate [10];
_strdate(sdate);
std::cout<<"Current Date:"<<sdate;
return 0;
}
when I complie in cygwin, the error is
test.cpp:8: error: â was not declared in this scope
Where are am I making a mistake. Please help me. Its urgent. Thanks a lot in advance.