什么原因导致了此错误?我google'd它和前几个解决方案,我发现是有些东西是错误的图书馆和主要功能,但都似乎罚款我的问题,我什至重新输入!什么可能导致这个?C++致命错误LNK1120:1个未解析的外部信息
这可能会有所帮助:
MSVCRTD.LIB(crtexew.obj):错误LNK2019:解析外部符号的WinMain @函数引用16 _ _tmainCRTStartup
#include <iostream>
using namespace std;
int main()
{
const double A = 15.0,
B = 12.0,
C = 9.0;
double aTotal, bTotal, cTotal, total;
int numSold;
cout << "Enter The Number of Class A Tickets Sold: ";
cin >> numSold;
aTotal = numSold * A;
cout << "Enter The Number of Class B Tickets Sold: ";
cin >> numSold;
bTotal = numSold * B;
cout << "Enter The Number of Class C Tickets Sold: ";
cin >> numSold;
cTotal = numSold * C;
total = aTotal + bTotal + cTotal;
cout << "Income Generated" << endl;
cout << "From Class A Seats $" << aTotal << endl;
cout << "From Class B Seats $" << bTotal << endl;
cout << "From Class C Seats $" << cTotal << endl;
cout << "-----------------------" << endl;
cout << "Total Income: " << total << endl;
return 0;
}
发布完整的错误。哪个是未解决的标志? –
而未解决的符号是?请提供完整的错误文本。 – Lou
你也应该得到LNK2001错误列出什么是未解决的。那些是什么? – shf301