我有这两个简单的类。我制作了一个 win32 应用程序,但是当我运行它时,它显示了这个错误:
错误 2 error LNK1120: 1 unresolved externals C:\Users\D\Documents\Visual Studio Projects\LR3 SYSPROG\Debug\LR3 SYSPROG.exe 1 1 LR3 SYSPROG
我已经尝试过在它正常工作之前运行它,即使没有触摸它,我是怎么搞砸的?
class Liquid
{
private:
char *name;
int density;
public:
void CLperenaznachenie();
//virtual void spiling();
public:
char* get_name() const;
void set_name(char const* new_name);
int get_density() const;
void set_density(int new_density);
};
class Alcohol:public Liquid
{
private:
int fortress;
public:
void CAperenaznachenie();
//void spiling(){
//new stuff
//};
public:
int get_fortress() const;
void set_fortress(int new_fortress);
};