LNK2019错误:无法运行功能

时间:2014-03-25 22:58:37

标签: linker-errors lnk2019

我的程序有问题。我几乎没有完成,但只是调试这个,我收到一个错误:

  

错误LNK2019:未解析的外部符号_WinMain @ 16

我不知道我的程序可能出现什么问题。有人可以告诉我可能的解决方案吗?

#include <iostream>
#include <cmath>
#include <cstdlib>
#include <ctime>

using namespace std;

void PrintHeading (int);          


int main()
{
    int money = 1000; 

    PrintHeading (money);

    return 0;
}


void PrintHeading (int money)
{
   cout << "Welcome to the High-Low Game." << endl;
   cout << "You will initially begin with $ " << money  << "." << endl;
   cout << "You will have six chances to guess a correct";
   cout << " number between 1 and 100." << endl;
   cout << " Let's begin" << endl;
}

0 个答案:

没有答案