![]() |
#2
rjsp2013-06-05 08:45
|
#include <iostream>
#include<string>
using namespace std;
template<class x>
int main()
{
x a;
x b;
void get()
{
cout<<"input the datas:"<<endl;
cin>>a>>b;
}
x max (x a, x b)
{
return a>b?a:b;
}
cout<<max()<<endl;
return 0;
}
错误提示如下: error LNK2001: unresolved external symbol _main
Debug/未完.exe : fatal error LNK1120: 1 unresolved externals