代碼沒看出來
C:\Users\ADMINI~1\AppData\Local\Temp\ccmrykIf.o:demo.cpp:(.text+0x20): undefined reference to `Line::Line()'
C:\Users\ADMINI~1\AppData\Local\Temp\ccmrykIf.o:demo.cpp:(.text+0x35): undefined reference to `Line::~Line()'
這是什么回事哦
C:\Users\ADMINI~1\AppData\Local\Temp\ccmrykIf.o:demo.cpp:(.text+0x20): undefined reference to `Line::Line()'
C:\Users\ADMINI~1\AppData\Local\Temp\ccmrykIf.o:demo.cpp:(.text+0x35): undefined reference to `Line::~Line()'
這是什么回事哦
2019-09-20
舉報(bào)
2019-12-02
你這個(gè)實(shí)例化構(gòu)造函數(shù)和析構(gòu)函數(shù)要在Line.cpp里面吧,放在main函數(shù)里不行應(yīng)該
2019-09-21
代碼如圖