一直报错试了很久还是不行严重性 LNK2019 无法解析的外部符号 "class StationWagon __cdecl s(void)" (?s@@YA?AVStationWagon@@XZ),函数 main 中引用了该符号 14.2 C:\Users\myself\Desktop\c++\第十四周作业\14.2\14.2\源.obj 1
#include<iostream>
using namespace std;
class Automobile {
public:
Automobile(string a, string b, int c, int d) :brand(a), colour(b), weight(c), power(d) {
cout << "Automobile con" << endl;
}
void A_set(string a, string b, int c, int d){
brand = a;
colour = b;
weight = c;
power = d;
}
void A_show() {
cout << "品牌:" << brand << endl;
cout << "颜色:" << colour << endl;
cout << "车重:" << weight << "kg&