cuốn sách gpt4 ai đã làm

c# - Lỗi LNK2019: bên ngoài chưa được giải quyết và LNK1120: 1 bên ngoài chưa được giải quyết

In lại Tác giả: Walker 123 更新时间:2023-11-28 06:34:56 27 4
mua khóa gpt4 Nike

在编译我的代码时,我收到此错误。

1>MSVCRTD.lib(crtexe.obj):错误 LNK2019:函数 ___tmainCRTStartup 中引用了未解析的外部符号 _main1>C:\Users\Gabe Phelan\Documents\Visual Studio 2013\Projects\PA3 test\Debug\PA3 test.exe : fatal error LNK1120: 1 unresolved externals

#include 
#include
sử dụng không gian tên std;

class Heap{
riêng tư:

vector heap;
kích thước int;

công cộng:
Heap(bool x);

};

#include "Header.h"

Heap::Heap(bool order){
int dummy = 0;
heap.push_back(dummy);
size = heap.size() - 1;

}

câu trả lời hay nhất

你必须有一个入口点,它是一个叫做 main 的函数。所以你需要这个,

int main(int argv, char* argc[])
{
//your code here
}

你不在这里声明类,而是你希望程序执行什么。

关于c++ - 错误 LNK2019 : unresolved external and LNK1120: 1 unresolved externals,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26921949/

27 4 0
Chứng chỉ ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com
Xem sitemap của VNExpress