我使用Visual Studio速成2012和獲取致命錯誤消息..LNK1561與VS致命錯誤表示2012
#include <iostream>
using namespace std;
int Main()
{
double TotalProfit,
yearlysales = 8600000,
percentsales = 0.58;
TotalProfit = yearlysales * percentsales;
cout << "Total Profit for the year is $" << TotalProfit << endl;
return 0;
}
C++是大小寫敏感的。程序入口點應該被稱爲'main',而不是'Main' – 2014-09-25 02:27:55