Hi,
I'm just learning about Struct and have written this very simple code:
Code:
#include <iostream>
#include <iomanip>
#include <vector>
#include <ios>
#include <string>
#include <algorithm>
#include "header.h"
#include <stdexcept>
#include <cctype>
using namespace std;
struct Date {
int y, m, d;
Date(int y, int m, int d);
void add_day(int n);
};
int main()
{
Date today(2010, 06, 16);
cin.get();
return 0;
}
But it won't compile and I get the following error:
test.obj : error LNK2019: unresolved external symbol "public: __thiscall Date:ate(int,int,int)" (??0Date@@QAE@HHH@Z) referenced in function _main
Any ideas please?
Thanks.