I have a Date class. In this class :(Date.h)
class Date
{
...
public:
static Date creatDate (char *stringDate)
....
};
Date.cpp:
I want to creat an array like this: stringDate[2][12] = {{31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}, {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}};
I started at:
Date Date::creatDate (char *stringDate)
{
}
I don't know how to write code for this function. Please help me!