I am trying to reteach myself on classes and such, but am having a hard time compiling the code. Below are my header, implementation and main codes. When I try to compile, I get:
LNK2019 unresolved external symbol "public: __thiscall artType::artType(void)" (??0artType@@QAE@XZ) referenced in function _main
I realize that this is an over-done question, but I have spent several days trying to get this (retyping it, researching, reading documentation, pulling hair out) and I wish not to spend too much more time on this stupid error.
Thanks in advance for the help,
Nathan
Code: Header (art.h)
#pragma once
class artType
{
public:
    int x;
    int get();
    artType();
};
Implementation file (art.cpp)
#include "art.h"
artType::get()
{
    return x;
}
artType::artType()
{
    x = 2;
}
Main code (Ov1.cpp)
#include "stdafx.h"
#include <iostream>
#include "art.h"
using namespace std;
int main()
{
    artType a;
    int num = 0;
    num = a.get();
    cout << num << endl;
    return 0;
}
