MSVCRTD.lib(crtexe.obj) : error LNK2019: 无法解析的外部符号 _main,该符号在函数 _tmainCRTStart,该怎么处理

MSVCRTD.lib(crtexe.obj) : error LNK2019: 无法解析的外部符号 _main,该符号在函数 ___tmainCRTStart
错误为:1>MSVCRTD.lib(crtexe.obj) : error LNK2019: 无法解析的外部符号 _main,该符号在函数 ___tmainCRTStartup 中被引用
1>C:\Users\Ccami\Desktop\seqlistprojecta\Debug\seqlistprojecta.exe : fatal error LNK1120: 1 个无法解析的外部命令
我之前通过在属性命令行加入了/nodefaultlib:libc,然后把找不到libc的错误消除了,但出现了以上的两个错误,
求大神解答,这是作业但我运行不了
Sealist.h
#ifndef SeqLIst_H
#define SeqLIst_H
const int MaxSize=100;
template<class DataType>
class SeqList
{public:
SeqList(){length=0;}
SeqList(DataType a[],int n);
~SeqList(){}
int length(){return length;}
DataType Get(int i);
int Locate(DataType x);
void Insert(int i,DataType x);
DataType Delete(int i);
void PrintList();
private:
DataType data[MaxSize];
int Length;};
#endif

SeqList.cpp
#include<iostream>
using namespace std;
#include"SeqList.h"
template<class DataType>
SeqList<DataType>::SeqList(DataType a[],int n)
{if(n>MaxSize)throw"参数非法";
 for(i=0;i<n;i++)
 data[i]=a[i];
 length=n;}
template<class DataType>
DataType SeqList<DataType>::Get(int i)
{if(i<1||i>length)throw"查找位置非法";
else return data[i-1];}
template<class DataType>
int SeqList<DataType>::Locate(DataType x)
{for(i=0;i<length;i++)
if(data[i]==x)
return i+1;
return 0;}
template<class DataType>
void SeqList<DataType>::Insert(int i,DataType x)
{
if(length>=MaxSize)throw"上溢";
if(i<1||i>length+1)throw"位置";
for(j=length;j>=i;j--)
data[j]=date[j-1];
data[i-1]=x;
length++;}

SeqList_main.cpp
#include<iostream>
using namespace std;
#include"SeqList.h"
template<class DataType>
int main() 
{int a[5],n=5;
for(int i=0;i<10;i++)
cin>>a[i];
SeqList(a[5],5);
SeqList::Insert(1,1);
SeqList::PrintList();
SeqList.PrintList();
SeqList<int> a;
a.Insert(1,10);
int b=a.get(1);
cout>>a;
}

------解决思路----------------------
int main() 改为 _tmain
------解决思路----------------------
main 改为_tmain 
------解决思路----------------------
extern "C"将main包起来