什麼原因導致了此錯誤?我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