多个源代码在一个项目文件下的运行问题

方在一个项目文件中,连接执行的时候出现了问题:
test2.obj : error LNK2005: _main already defined in test1.obj
Debug/p1.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.
p1.exe - 2 error(s), 0 warning(s)
这是为什么? 两个文件都有主函数main
我才刚学VC 是大菜鸟 希望大侠都帮忙!